|
From: | drich |
Subject: | Re: RES: Monitoring cacti process/PID with Monit |
Date: | Thu, 26 Apr 2012 08:22:17 -0700 |
User-agent: | Roundcube Webmail/0.7.2 |
Monit is really the wrong tool for that, it's roughly along the lines of trying to drive a nail with a staple gun. You can probably do it, but a hammer would work a lot better.
You would be much better off using something like sec (http://simple-evcorr.sourceforge.net/) to watch your cacti log and make sure you get the "SYSTEM STATS:" message at least once every log cycle. I think sec can do that, I haven't ever tried to make it try to check for a message appearing, only for errors within a message.
There is also a nagios plugin that will watch the cacti log, that might be something to look at as well. http://forums.cacti.net/viewtopic.php?f=5&t=15239
On 26.04.2012 08:10, Alexandre Carlos Vilarinho de Oliveira wrote:
Yes I'm just trying to make sure that every time Cacti starts up it did as it should and if there is a problem with its initialization monit has to signal it.
Atenciosamente
De: address@hidden [mailto:address@hidden Em nome de drich
Enviada em: quinta-feira, 26 de abril de 2012 11:29
Para: This is the general mailing list for monit
Assunto: Re: Monitoring cacti process/PID with MonitMonit isn't designed to monitor something like cacti that doesn't run as a daemon. Cacti instead is a process started by cron that runs periodically (typically ever 5 minutes).
What is it that you are really trying to do? Are you just trying to make sure that every Cacti run has completed successfully?
On 26.04.2012 07:07, Alexandre Carlos Vilarinho de Oliveira wrote:
Hello all, Recently I´ve started to monitor CACTI with Monit, but because of cacti’s nature it do run constantly and every time it restart a new PID is used, and because of it Monit keeps changing the status of the process instead of keeping it ok. Is it possible to avoid this behavior? How can I monitor CACTI and avoid Monit to flood e-mails of PID changes? Regards Atenciosamente--
Dan Richhttp://www.employees.org/~drich/
"Step up to red alert!" "Are you sure, sir?
It means changing the bulb in the sign..."
- Red Dwarf (BBC)
assinatura.gif
Description: GIF image
[Prev in Thread] | Current Thread | [Next in Thread] |