monit-general
[Top][All Lists]
Advanced

[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!

Tried:
------------- SNIP SNIP -------------
check process ntp with pidfile /var/run/ntpd.pid
        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?
http://mmonit.com/monit/documentation/monit.html#setting_a_local_alert_statement

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:
Hello,

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

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

Thanks,
      Rui Lapa

--
To unsubscribe:
https://lists.nongnu.org/mailman/listinfo/monit-general



--
To unsubscribe:
https://lists.nongnu.org/mailman/listinfo/monit-general




reply via email to

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