'silently' or equivalent option needed for alerts

Issue #775 closed
Former user created an issue

We have an installation with dozens of servers with processes monitored by Monit. For operation purposes the processes are restarted on a daily basis and on a rolling basis. This produces hundreds of monitor and unmonitor messages per day and it's hard to 'sort the wheat from the chaff'.

It would be highly usefull if there was an option that could be specified with each action, either locally within check or globally, called silently to turn off the notification that a particular action happened.

For example (not necessarily a good one); if 3 retries in 15 cycles then unmonitor silently

silently does not change how or when actions happen but merely informs monit not to send a notification if the action is performed.

Alternatively, add monitor and unmonitor to the list of alert events so that you can specify set alert foo@bar but not on {monitor, unmonitor}

Comments (2)

  1. Tildeslash repo owner

    you can use the following to filter out the manual monitor/unmonitor actions which are triggered via CLI or GUI, filter out the "action" event:

    set alert foo@bar but not on {action}
    

    If you need to suppress the unmonitor alert on restart limit as well, then add the "timeout" event:

    set alert foo@bar but not on {action, timeout}
    
  2. Log in to comment