[mrtg] Re: Alert on No Response

Koelstra, J. (Jan) JKoelstra at MINSZW.NL
Tue Jul 16 09:32:47 MEST 2002


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.


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

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

Any suggestions you can offer would be much appreciated.


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