Thanks Callum, but it doesn't work!
Tried:
------------- SNIP SNIP -------------
check process ntp with pidfile /var/run/ntpd.pid
alert *@* 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
--
To unsubscribe:
https://lists.nongnu.org/mailman/listinfo/monit-general