- edited description
Same action on success as when test fails
Issue #662
resolved
I have the following rule:
if failed ping4 for 4 cycles then exec /iae/monit/etc/send_alert
When the check fails it sends an email and also exec's the script just as expected. But when the check then succeeds it only sends the email but does not call the script. I would expect the exact same action to happen on the fail and succeed states. Is this possible?
Comments (2)
-
repo owner -
repo owner - changed status to resolved
yes, see the optional "... else if succeeded then <action>" statement: https://mmonit.com/monit/documentation/monit.html#GENERAL-SYNTAX
(defaults to alert action)
- Log in to comment