[mrtg] Re: Alert on No Response

jrb JeffWorking at hotmail.com
Wed Jul 17 09:26:10 MEST 2002


Garth,

By "when a device fails to respond to MRTG" I meant when a device times-out
or MRTG fails to read the SNMP data for any reason.  I like your idea,
although there's a small chance that a separate SNMP query could succeed and
MRTG could still fail.

Regarding your 'doubling-up' question, I'm not so much interested in testing
each OID.  I'm more concerned with knowing when an MRTG run failed to read
any of the polled data.  Essentially, I was hoping for a way to test MRTG's
return value and respond if the run was not a complete success.

Thanks for the feedback,
jrb


----- Original Message -----
From: "Williams, Garth" <gkwilliams at epcor.ca>
To: <mrtg at list.ee.ethz.ch>
Sent: Tuesday, July 16, 2002 10:12 AM
Subject: [mrtg] Re: Alert on No Response



I have been following this thread with some interest.

What is meant by "No MRTG response"?

Most of the time, MRTG takes advantage of the SNMP_Util module to query the
intended target, right?

So, why not write a small SNMP query before MRTG scan and if fail, send an
email or somrthing?

For example, before I start my MRTG run, I PING the target.  If it fails,
then I send an email and move onto the next target.  Etc., etc.  Works
great!

If I were doing it via SNMP, then I would use the SNMP_Util module, and
query the sysDescr or sysObjectID value, and make sure I get a valid return
(i.e. not 0 or undef).

Beyond that seems to me that you would be doubling up on the query if you
were to test each target OID before MRTG was.

... Or am I way out in left field?

> 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.
>
> Any suggestions you can offer would be much appreciated.
>
> -jrb
>
This e-mail contains confidential information that is proprietary to EPCOR
and its subsidiary companies in all respects. This information is intended
only for the person(s) named in the destination address. Distribution,
copying or disclosure is strictly prohibited. If you receive this e-mail in
error, please delete it immediately.

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