Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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

check process blop with pidfile /.../
      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.

share|improve this question
Sorry, didn't get a notification... – aurels Sep 27 '13 at 9:54
up vote 18 down vote accepted

You can disable this alert by setting up a local alert statement. This is thoroughly documented here:

This should do it:

check process blop with pidfile /.../
    alert but not on { pid }
    start program = "..."
    stop  program = "..."
share|improve this answer

Another option is disabling alerts on

set alert not on { instance, action }

This way you will not receive alerts for monit restart (instance) nor alerts for all services start/stop/restart (action).

Full list of possible filters for this can be found at: (I think this list should also apply to the alerts attached to process checks of another answer for this question).

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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