Browse Source

fix notification when changing from pending -> up

pull/86/head
Sam 4 years ago
parent
commit
054269ecf0
  1. 5
      server/model/monitor.js

5
server/model/monitor.js

@ -120,8 +120,9 @@ class Monitor extends BeanModel {
bean.msg = error.message;
}
// Mark as important if status changed, ignore pending pings
if ((! previousBeat || previousBeat.status !== bean.status) && bean.status !== 2) {
// Mark as important if status changed, ignore pending pings,
// Don't notify if disrupted changes to up
if ((! previousBeat || previousBeat.status !== bean.status) && bean.status !== 2 && !(previousBeat.status === 2 && bean.status !== 0)) {
bean.important = true;
// Do not send if first beat is UP

Loading…
Cancel
Save