[mrtg] Problems with dskPercent and MRTG

Robert Campbell robert.campbell at cmg.nl
Wed Jul 4 09:48:42 MEST 2001



Hi all,

I have the follwing situation when I run mrtg:

miniapps:/usr/local/httpd/htdocs/mrtg # /usr/local/mrtg-2/bin/mrtg
/etc/mrtg.conf
WARNING: Expected a number but got '#<unprintable BER type 0x81>'
WARNING: Expected a number but got '#<unprintable BER type 0x81>'
WARNING: Expected a number but got '#<unprintable BER type 0x81>'
WARNING: Expected a number but got '#<unprintable BER type 0x81>'
WARNING: Expected a number but got '#<unprintable BER type 0x81>'
WARNING: Expected a number but got '#<unprintable BER type 0x81>'
Bareword "dskPercent" not allowed while "strict subs" in use at (eval 23)
line 1.
Bareword "dskPercent" not allowed while "strict subs" in use at (eval 24)
line 1.
Bareword "dskPercent" not allowed while "strict subs" in use at (eval 25)
line 1.
Bareword "dskPercent" not allowed while "strict subs" in use at (eval 26)
line 1.
Bareword "dskPercent" not allowed while "strict subs" in use at (eval 27)
line 1.
Bareword "dskPercent" not allowed while "strict subs" in use at (eval 28)
line 1.


I can get rid of the strict subs message by simply commenting the line
"strict subs" out of the mrtg perl file. Not nice, but it works.

But I want to get the number out, not unprintable stuff.

This is the section of the config file causing problems:

Target[sda2]:dskPercent.1:public at localhost:::::2
Title[sda2]: Space used on
PageTop[sda2]: <H1> Disk space (sda2) in blocks </H1>
Options[sda2]: gauge
Unscaled[sda2]: ymwd
MaxBytes[sda2]: 100
YLegend[sda2]: Disk Percentage Used
Legend1[sda2]: sda2 percentage used
Xsize[sda2]: 350


Target[sda1]:dskPercent.2:public at localhost:::::2
Title[sda1]: Space used on
PageTop[sda1]: <H1> Disk space (sda1) in blocks </H1>
Options[sda1]: gauge
Unscaled[sda1]: ymwd
MaxBytes[sda1]: 100
YLegend[sda1]: Disk Percentage Used
Legend1[sda1]: sda1 percentage used
Xsize[sda1]: 350


Target[sda4]:dskPercent.3:public at localhost:::::2
Title[sda4]: Space used on
PageTop[sda4]: <H1> Disk space (sda4) in blocks </H1>
Options[sda4]: gauge
Unscaled[sda4]: ymwd
MaxBytes[sda4]: 100
YLegend[sda4]: Disk Percentage Used
Legend1[sda4]: sda4 percentage used
Xsize[sda4]: 350

I have imported the MIB file like this:
LoadMIBs: /usr/share/snmp/mibs/UCD-SNMP-MIB.txt

and snmpd is definitly running:

miniapps:/usr/local/httpd/htdocs/mrtg # snmpget -v 2c localhost public
dskPercent.3
enterprises.ucdavis.dskTable.dskEntry.dskPercent.3 = 12
miniapps:/usr/local/httpd/htdocs/mrtg # snmpget -v 2c localhost public
dskPercent.2
enterprises.ucdavis.dskTable.dskEntry.dskPercent.2 = 14
miniapps:/usr/local/httpd/htdocs/mrtg # snmpget -v 2c localhost public
dskPercent.1
enterprises.ucdavis.dskTable.dskEntry.dskPercent.1 = 35

Why is it complaining about not getting numbers returned?

HELP, please.

Thanks in advance,


Robert Campbell



Robert Campbell
Consultant
 
CMG Public Sector B.V.
Divisie Managed Services, Infrastructure Managed Services. ZMMS1 (IMS)
Heliumstraat 64, 2718 SL Zoetermeer of
Netherlands

Tel.    :    +31 (0)79-3684684
Fax     :    +31 (0)79-3684600
E-mail  :    Robert.Campbell at cmg.nl
WWW     :    http://www.cmg.nl

GSM phone: +31 (0)6-18470343 
 

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