|
From: | Stenver Jerkku |
Subject: | Re: Monit does not alert with stop or unmonitor |
Date: | Mon, 27 Oct 2014 19:13:55 +0200 |
Hello,do you have the "set mailserver" statement + "set alert" in your configuration file? Also check if you don't filter out the mentioned events (see manual for more details: http://www.mmonit.com/monit/documentation/monit.html#setting_an_event_filter)Regards,MartinOn 24 Oct 2014, at 13:15, Stenver Jerkku <address@hidden> wrote:--HelloIm having a problem, that monit does not send "stop" or "unmonitor" alert when it times out with restarts, PIDS ja PPIDS.Here are relevant configurations:set alert address@hiddencheck process visit_registry with pidfile /var/run/visit_registry.pidgroup servicesstart program = "/sbin/start visit_registry"stop program = "/sbin/stop visit_registry"if changed pid then alert every 4 cyclesif changed pid 4 times within 8 cycles then stopif changed ppid 4 times within 8 cycles then stopif 3 restarts within 6 cycles then stopif cpu > 60% for 2 cycles then alertif cpu > 80% for 5 cycles then restartif totalmem > 1000.0 MB for 5 cycles then alertif totalmem > 1500.0 MB for 5 cycles then alertif totalmem > 2000.0 MB for 5 cycles then restartIn the log, i can see:[UTC Oct 24 10:55:07] error : 'visit_registry' process PID changed from 10533 to 16947[UTC Oct 24 10:55:08] info : 'visit_registry' stop: /sbin/stopBut i never get an alert that monit stopped or unmonitored. I also tried using timeout or unmonitor instead of stop.Monit version 5.6Sincerely,Stenver JerkkuSalemove IncTartu university, Software Engineering
To unsubscribe:
https://lists.nongnu.org/mailman/listinfo/monit-general
--
To unsubscribe:
https://lists.nongnu.org/mailman/listinfo/monit-general
[Prev in Thread] | Current Thread | [Next in Thread] |