monit should remember current status between reload/restart

Issue #635 duplicate
Greg Robertson created an issue

Let say I have a rule like this:

check host server1 with address 1.2.3.4
        if failed ping4 for 5 cycles then alert

and server1 has gone offline and monit has sent me the failed alert.

If I restart monit or have to reload the configuration and server1 is still down then I will get the same failed alert again.

I would like for monit to know the last state of a device and not resend that alert upon reload/restart if the current state is the same as the last known state.

But if it checks and the server is back up then it should send the succeeded alert.

I thought this would already be there in the monit.state file but it does not appear to be the case. And this should not just be for ping...but for anything that is being checked in the rule.

Comments (3)

  1. Log in to comment