[mrtg] Re: MaxBytes variable

Mike Wren mwren at burnsmcd.com
Mon Jul 12 18:10:38 MEST 2004


I'm not an expert at perl, but this is what I did in my template:
 
At the start of the template I have the following two lines:
    my ($MemSize) = snmpget($router_connect,'1.3.6.1.2.1.25.2.2.0');
    $MemSize*=1024;
.....
Later where I have the target for memory I have:
    MaxBytes[$router_name.memory]: $MemSize

>>> "Britt Tabor" <Britt_Tabor at Jabil.com> 07/12/2004 10:25:05 AM >>>

I am using templates so I need to be able to vary the MaxBytes variable
for
any particular server. I'm monitoring memory so the MaxBytes will
change
from server to server but indexmaker doesn't seem to like anything but
an
Integer in this location when run. I can't reference the OID of total
memory
or anything. Does anyone know of a way to do this with mrtg templates?
Aside
from going through and changing the .cfg file after its created.






Britt Tabor

I.T. Infrastructure Engineer

Jabil Global Services

727.803.3475  Voice

727.803.5306  Fax







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