[mrtg] Caching SNMP Responses

Alistair.McGlinchy at marks-and-spencer.com Alistair.McGlinchy at marks-and-spencer.com
Tue Dec 3 01:35:03 MET 2002


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



More information about the mrtg mailing list