[mrtg] Re: Alert on No Response

jrb JeffWorking at hotmail.com
Wed Jul 17 09:54:40 MEST 2002


Are you talking about the log file that's generated by using the '--logging'
option, or the '.log' file that MRTG stores target data in?  If you're
talking about the former, I agree.  My comment in the previous message was
referring to the '.log' data file.  As far as I can tell, that file is only
updated when MRTG receives an SNMP response.

-jrb


----- Original Message -----
From: "Koelstra, J. (Jan)" <JKoelstra at MINSZW.NL>
To: "jrb" <JeffWorking at hotmail.com>; <mrtg at list.ee.ethz.ch>
Sent: Wednesday, July 17, 2002 2:27 AM
Subject: RE: [mrtg] Re: Alert on No Response


The '.log' file gets updated with a timestamp every time MRTG starts,
and if you get any time-out on an snmp-request this is recorded too.
(This is the case with 2.9.17)

Jan.

-----Original Message-----
From: jrb [mailto:JeffWorking at hotmail.com]
Sent: Wednesday, July 17, 2002 9:12 AM
To: mrtg at list.ee.ethz.ch
Subject: [mrtg] Re: Alert on No Response



Thanks everyone for the feedback.  There were some good ideas, but I
think Garth's suggestion to run a separate SNMP query will be the best
solution for me.  Jan's idea to use the '--logging' option may actually
be the better choice (since it's a direct test of MRTG's success), but
I'm forced to use an older version of MRTG, before the '--logging'
option was added.

It just occurred to me that I can redirect stderr, so that may be the
way to go afterall.

I also wanted to include some notes, in case anyone else searches the
archives for this problem.  I believe GREPing the '.log' or '.html'
files would only detect a problem after the device started responding
again, since MRTG doesn't write to these files if the SNMP query
times-out.  Thresholds in the '.cfg' file are also not triggered if the
query times-out, as far as I can tell.

I believe the above is accurate for 2.9.6 and 2.9.21.  Please let me
know if I'm mistaken.

Thanks again,
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



More information about the mrtg mailing list