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" <[EMAIL PROTECTED]> 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:[EMAIL PROTECTED]
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:[EMAIL PROTECTED]
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