Repeat monit alerts, except for mail
Issue #795
closed
When sending alerts by mail, you can resend alerts by setting as follows.
alert foo@bar with reminder on 1 cycle
However, when sending alerts by custom command (for example, alert to Slack), you set as follows, and it seems that resending cannot be set
check process foo with pidfile <pid path>
...
if does not exist then exec <custom command>
...
Is it possible to set resending alerts with custom command?
Comments (2)
-
repo owner -
repo owner - changed status to closed
- Log in to comment
You can use the "repeat" option (available since monit 5.16.0). See here for more details and example: https://mmonit.com/monit/documentation/monit.html#ACTION