[mrtg] Re: Alert on No Response
Bishop, Dean
dean.bishop at tcdsb.org
Tue Jul 16 13:57:11 MEST 2002
If this is the direction you want to head in, look at swatch. It is a
simple log watching utility. It watches files in real-time and performs
actions when regex's are found.
regards,
dean
-----Original Message-----
From: Koelstra, J. (Jan) [mailto:JKoelstra at MINSZW.NL]
Sent: Tuesday, July 16, 2002 3:33 AM
To: jrb; mrtg at list.ee.ethz.ch
Subject: [mrtg] Re: Alert on No Response
Hi,
If you start MRTG with '--logging=<filename>' you get all the failures
in a file. From here it should be easy to write a script that takes the
actions you want.
Jan.
-----Original Message-----
From: jrb [mailto:JeffWorking at hotmail.com]
Sent: Tuesday, July 16, 2002 7:21 AM
To: mrtg at list.ee.ethz.ch
Subject: [mrtg] Alert on No Response
Hi everyone.
I have a question that I thought would be common, but only shows up in
the archive a couple times with no responses. What I'd like to do is
call a shell script when a device fails to respond to MRTG.
I'm fairly new to Linux and MRTG, so there may be an obvious way to do
this that I'm missing. My first thought was to test the MRTG result
code, but it seems to return 0 even if the device fails to respond (I
think this is because I'm actually seeing the PERL result, which was
successful).
I also considered doing this outside of MRTG by writing a shell script
to ping the device every 5 minutes and report failures, but this won't
account for times when the ping succeeds and MRTG still fails to get a
response.
Any suggestions you can offer would be much appreciated.
-jrb
--
Unsubscribe mailto:mrtg-request at list.ee.ethz.ch?subject=unsubscribe
Archive http://www.ee.ethz.ch/~slist/mrtg
FAQ http://faq.mrtg.org Homepage http://www.mrtg.org
WebAdmin http://www.ee.ethz.ch/~slist/lsg2.cgi
--
Unsubscribe mailto:mrtg-request at list.ee.ethz.ch?subject=unsubscribe
Archive http://www.ee.ethz.ch/~slist/mrtg
FAQ http://faq.mrtg.org Homepage http://www.mrtg.org
WebAdmin http://www.ee.ethz.ch/~slist/lsg2.cgi
More information about the mrtg
mailing list