monit-general
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Not able to disable default alert


From: Martin Pala
Subject: Re: Not able to disable default alert
Date: Wed, 25 Apr 2007 21:36:27 +0200
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.3) Gecko/20070217 Iceape/1.1.1 (Debian-1.1.1-2)

The alert action is implicit - even if you set the exec action, you will get the alert as well.

If you want to disable the alert, then set the alert filter this way:

--8<--
   alert address@hidden but not on { change }
--8<--

(see manual for more details)

Martin

David Anderson wrote:
The monit manual says that I can disable the implicit pid-change alert. I want to do this for clamav, as this is restarted regularly by a cron job (because it is a memory hog - restarting it releases memory).

I have this in my monit configuration:


check process clamd with pidfile /var/run/clamav/clamd.pid
   group virus
   start program = "/etc/init.d/clamd start"
   stop  program = "/etc/init.d/clamd stop"
   if changed pid then exec "/bin/true"
   if failed unixsocket /var/clamav/clamd.sock for 2 cycles then restart
   if 5 restarts within 5 cycles then timeout


The crucial line being the one with 'exec "/bin/true"'.

However, it appears to have no effect - I still get e-mail alerts when monit detects that the PID has changed. What am I doing wrong?

Thanks for your time,
David







reply via email to

[Prev in Thread] Current Thread [Next in Thread]