[Top][All Lists]

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

Re: Monit ignore PID -> M/Monit

From: Rui Lapa
Subject: Re: Monit ignore PID -> M/Monit
Date: Tue, 06 Mar 2012 14:13:19 +0000
User-agent: Mozilla/5.0 (X11; Linux i686; rv:11.0) Gecko/20120302 Thunderbird/11.0

Thanks Callum, but it doesn't work!

------------- SNIP SNIP -------------
check process ntp with pidfile /var/run/
        alert address@hidden but not on { pid }
        start program = "/etc/init.d/ntp start" with timeout 60 seconds
        stop program  = "/etc/init.d/ntp stop"
        if 3 restarts within 5 cycles then timeout
------------- SNIP SNIP -------------

And I still get the event on M/Monit
------------- SNIP SNIP -------------
process PID changed from X to Y
------------- SNIP SNIP -------------

Em 06-03-2012 11:41, Callum Macdonald escreveu:
Have you looked at the ALERT BUT NOT ON { pid } syntax in the man page?

Not sure if it applies to M/Monit or not, but it might do.

Cheers - Callum.

On Tue, 2012-03-06 at 11:38 +0000, Rui Lapa wrote:

      How do I ignore all ntp PID changes and NOT SEND them to M/Monit

      if changed pid then exec "/bin/echo" ???

      Rui Lapa

To unsubscribe:

To unsubscribe:

reply via email to

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