[mrtg] Re: Caching SNMP Responses
Vanish Pattni (DSL AK)
VanishP at datacom.co.nz
Tue Dec 3 03:07:51 MET 2002
What I do is record the data for the two devices separately. Then with the
recorded data in rrd files I use RRGrapher to get data from the two rrd
files and graph them together. Effectively tyhis separates my data
collection from graphing and gives me frredom to do whatever I want with the
data.
Hope that helped or was slightly insightful.
Vanish
-----Original Message-----
From: Alistair.McGlinchy at marks-and-spencer.com
[mailto:Alistair.McGlinchy at marks-and-spencer.com]
Sent: Tuesday, December 03, 2002 1:35 PM
To: mrtg at list.ee.ethz.ch
Subject: [mrtg] Caching SNMP Responses
Hi All,
Is there any way to tell MRTG to Cache it's SNMP queries so that it only
polls a device once, even if the ip/port combo is mentioned multiple times
in a config file.
For example I would like to graph the CPU of two routers, and also have a
graph of the sum of the CPUs of both routers (so that I know what my
disaster-recoverable capacity is).
My CFG file looks similar to the following example.
Target[RouterA1]:.1.3.6.1.4.1.9.2.1.58.0&.1.3.6.1.4.1.9.2.1.58.0:public at x.y.
z.1
<etc>
Target[RouterA2]:.1.3.6.1.4.1.9.2.1.58.0&.1.3.6.1.4.1.9.2.1.58.0:public at x.y.
z.2
<etc>
Target[RouterA1andA2]:.1.3.6.1.4.1.9.2.1.58.0&.1.3.6.1.4.1.9.2.1.58.0:public
@x.y.z.1 +
.1.3.6.1.4.1.9.2.1.58.0&.1.3.6.1.4.1.9.2.1.58.0:public at x.y.z.2
<etc>
So the router is polled 4 times even though only two SNMP polls should be
required and the duplicate OID is requested twice in the same frame.Can
anyone suggest a way I can get MRTG to poll these devices more efficiently?
I'd ideally like to have a lot more targets like "RouterA1andA2" but without
having to consider the overhead of doubling my SNMP traffic.
I could, perhaps, do the addition using a backtick target to read from the
first line of the .log files, but that seems awfully backward and
inefficient.
Any suggestions?
Alistair
-----------------------------------------------------------------------
Registered Office:
Marks & Spencer p.l.c
Michael House, Baker Street,
London, W1U 8EP
Registered No. 214436 in England and Wales.
Telephone (020) 7935 4422
Facsimile (020) 7487 2670
www.marksandspencer.com
Please note that electronic mail may be monitored.
This e-mail is confidential. If you received it by mistake, please let us
know and then delete it from your system; you should not copy, disclose, or
distribute its contents to anyone nor act in reliance on this e-mail, as
this is prohibited and may be unlawful.
The registered office of Marks and Spencer Financial Services PLC, Marks and
Spencer Unit Trust Management Limited, Marks and Spencer Life Assurance
Limited and Marks and Spencer Savings and Investments Limited is Kings
Meadow, Chester, CH99 9FB.
--
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