[mrtg] Re: Syntax Change? Unknown SNMP var?

Brian A. Seklecki lavalamp at spiritual-machines.org
Fri Mar 3 03:47:47 MET 2006


# su - mrtg -c "/usr/bin/perl -d /usr/local/bin/mrtg 
/usr/local/etc/mrtg/mrtg-ravage.admin.conf"

Loading DB routines from perl5db.pl version 1.28
Editor support available.

Enter h or `h h' for help, or `man perldebug' for more help.

main::(/usr/local/bin/mrtg:17): my @STARTARGS=($0, at ARGV);
   DB<1> c
Unknown SNMP var hrStorageUsed.5
  at /usr/local/bin/mrtg line 1980
  at /usr/local/lib/perl5/site_perl/5.8.8/SNMP_util.pm line 1019
         SNMP_util::toOID('hrStorageUsed.5', 'hrStorageSize.5', 
'sysUptime', 'sysName') called at 
/usr/local/lib/perl5/site_perl/5.8.8/SNMP_util.pm line 487
         SNMP_util::snmpget('pitbpa1cf at localhost::::::v4only', 
'HASH(0x8da56e0)', 'hrStorageUsed.5', 'hrStorageSize.5', 'sysUptime', 
'sysName') called at /usr/local/bin/mrtg line 1980
         main::getsnmparg('HASH(0x86bdd5c)', 'HASH(0x8da55c0)', 
'HASH(0x8bb21c0)') called at /usr/local/bin/mrtg line 2259
         main::readtargets('HASH(0x86bdd5c)', 'ARRAY(0x8bbcdec)', 
'HASH(0x8bb21c0)') called at /usr/local/bin/mrtg line 383
         main::main called at /usr/local/bin/mrtg line 145
Unknown SNMP var hrStorageSize.5
  at /usr/local/bin/mrtg line 1980
  at /usr/local/lib/perl5/site_perl/5.8.8/SNMP_util.pm line 1019

Very strange, because:

# snmpget -v2c -c BLAHBLAHBLAH localhost hrStorageSize.5
HOST-RESOURCES-MIB::hrStorageSize.5 = INTEGER: 506487

~BAS

On Thu, 2 Mar 2006, Brian A. Seklecki wrote:

>
> Did something change between mrtg-2.12.2,1 and mrtg-2.13.2,1  that's not
> mentioned in:
>
> http://people.ee.ethz.ch/~oetiker/webtools/mrtg/pub/CHANGES
>
>
> Suddenly, the following syntax is invalid:
>
> Title[skyhopper.fs.root]: Disk Usage /
> Target[skyhopper.fs.root]:
> hrStorageUsed.5&hrStorageSize.5:COMSTRING at skyhopper.pgh.priv.collaborativefusion.com
> * 2
> kMG[skyhopper.fs.root]: k,M,G,T
> Kilo[skyhopper.fs.root]: 1024
> Options[skyhopper.fs.root]: gauge,nopercent,dorelpercent,growright
> PageTop[skyhopper.fs.root]: <H1>skyhopper - Disk Usage for / (root --
> slash) </H1>
> MaxBytes[skyhopper.fs.root]: 1013000
>
> It returns:
>
> Unknown SNMP var hrStorageUsed.5
>  at /usr/local/bin/mrtg line 1980
> Unknown SNMP var hrStorageSize.5
>  at /usr/local/bin/mrtg line 1980
> WARNING: Expected a number but got '2 days, 9:48:08'
> WARNING: Expected a number but got 'ravage'
>
>
> If I tcpdump(8), I don't see any GetRequest() for
> HOST-RESOURCES-MIB::hrStorage{Size,Used}.*
>
> Here are the details on the boxes:
>
> working# pkg_info |egrep -i "mrtg|snmp"
> mrtg-2.12.2,1       The multi-router traffic grapher
> net-snmp-5.2.1.2    An extendable SNMP implementation
> p5-Net-SNMP-5.2.0   A perl module for SNMP... Net::SNMP
> p5-SNMP_Session-1.07 A perl5 module providing rudimentary access to SNMPv1
>
> Broken# pkg_info |egrep -i "mrtg|snmp"
> mrtg-2.13.2,1       The multi-router traffic grapher
> net-snmp-5.2.2      An extendable SNMP implementation
> p5-Net-SNMP-5.2.0   A perl module for SNMP... Net::SNMP
> p5-SNMP_Session-1.08 A perl5 module providing rudimentary access to SNMPv1
>
> Both have perl-5.8.8.
>
> Both have: LoadMIBs:
> /usr/local/share/snmp/mibs/UCD-SNMP-MIB.txt,/usr/local/share/snmp/mibs/TCP-MIB.txt,/usr/local/share/snmp/mibs/HOST-RESOURCES-MIB.txt,/usr/local/share/snmp/mibs/DISMAN-EVENT-MIB.txt
>
> Thoughts?
> l8*
> 	-lava
>
> x.25 - minix - bitnet - plan9 - 110 bps - ASR 33 - base8
>
> --
> Unsubscribe mailto:mrtg-request at list.ee.ethz.ch?subject=unsubscribe
> Archive     http://lists.ee.ethz.ch/mrtg
> FAQ         http://faq.mrtg.org    Homepage     http://www.mrtg.org
> WebAdmin    http://lists.ee.ethz.ch/lsg2.cgi
>
>

l8*
 	-lava

x.25 - minix - bitnet - plan9 - 110 bps - ASR 33 - base8

--
Unsubscribe mailto:mrtg-request at list.ee.ethz.ch?subject=unsubscribe
Archive     http://lists.ee.ethz.ch/mrtg
FAQ         http://faq.mrtg.org    Homepage     http://www.mrtg.org
WebAdmin    http://lists.ee.ethz.ch/lsg2.cgi



More information about the mrtg mailing list