When you monitor a process with Monit by its pid, like :

check process blop with pidfile /.../blop.pid
      start program = "..."
      stop  program = "..."

you get an alert when the pidfile is changed.

How do you disable this alert? For example, if you only want to know when the process fails to be restarted.

link|improve this question
feedback

1 Answer

You can disable this alert by setting up a local alert statement. This is thoroughly documented here: http://mmonit.com/monit/documentation/monit.html#setting_a_local_alert_statement

This should do it:

check process blop with pidfile /.../blop.pid
    alert recipient@address.com but not on { pid }
    start program = "..."
    stop  program = "..."
link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.