[mrtg] debugging problems when using a custom MIB

Rob Kudyba rkudyba at raeinternet.com
Thu Jan 27 18:25:05 MET 2005


What debugging techniques are available when running mrtg on a cfg file? 
My problem is that I'm not sure if the LoadMIBs directive is working. 
What file(s) can I look at and perhaps uncomment some methods to see 
some debug code?

What's bothersome is that if I change the Target from the MIB to 
something invalid, e.g., and add a suffix to an OID/ObjectName that does 
not exist, from the CLI you see:

Unknown SNMP var mtaReceivedMessage
  at /usr/local/mrtg-2/bin/mrtg line 1849
WARNING: Expected a number but got '20:10:01'
ERROR: Target[192.168.56.70][_OUT_] ' $target->[0]{$mode} ' did not eval 
into defined data

And when I just put in the actual OID or ObjectName, no errors are 
returned...

If anyone wants to take a look at my cfg file it's at
ftp://herbie.raeinternet.com/pub/mpp/mrtg_mpp.cfg.rk and you can use 
herbie.raeinternet.com:161 and try plotting it yourself. Our custom MIB 
is available at ftp://ftp.raeinternet.com/pub/mpp/MPP-MIB.txt,

I have it installed (v 2.11.1) and running at
http://herbie.raeinternet.com:8000/index.html but I can't seem to get
any stats to display. Using our own custom MIB, I am starting with
'mtaReceivedMessages' & 'mppMTASpamCount' since those are always
increasing and are integers.

In my MRTG cfg file I have:
LoadMIBs: /usr/local/share/snmp/mibs/MPP-MIB.txt

Target[192.168.56.70]:mtaReceivedMessages&mppMTASpamCount:public at 192.168.56.70
#SetEnv[192.168.56.70]: MRTG_INT_IP="192.168.56.70" MRTG_INT_DESCR="MPP"
MaxBytes[192.168.56.70]: 1000
Title[192.168.56.70]: MPP Received Messages vs. Total Spam --
herbie.raeinternet.com
PageTop[192.168.56.70]: <H1>MPP Received Messages vs. Total Spam --
herbie.raeinternet.com</H1>
YLegend[192.168.56.70]: Total number
ShortLegend[192.168.56.70]: total
Legend1[192.168.56.70]: MTA Received Messages
Legend2[192.168.56.70]: Messages marked as spam

Since we also have a v2c community (public) I've even tried variations
w/ the Targets:
Target[192.168.56.70]:mtaReceivedMessages&mppMTASpamCount:public at 192.168.56.70:::::2
Target[192.168.56.70]:
1.3.6.1.4.1.21157.1.1.3&1.3.6.1.4.1.21157.1.1.18:public at 192.168.56.70:::::2

And the custom MIB does exist albeit as a soft link:
ls -l /usr/local/share/snmp/mibs/MPP-MIB.txt
lrwxrwxrwx    1 root     root           26 Jan 22 11:55
/usr/local/share/snmp/mibs/MPP-MIB.txt -> /usr/local/MPP/MPP-MIB.txt

ls -l /usr/local/MPP/MPP-MIB.txt
-rw-r--r--    1 build    build       47899 Nov 22 09:30
/usr/local/MPP/MPP-MIB.txt

SNMPGET's work just fine from the CLI, for example:
snmpget localhost mtaReceivedMessages
MPP-MIB::mtaReceivedMessages = INTEGER: 1132

snmpget localhost mppMTASpamCount
MPP-MIB::mppMTASpamCount = INTEGER: 169

No errors appear to std. out during use of mrtg nor indexmaker programs.
Is there any debug I can try?


Cordially,

Rob
http://www.messagepartners.com/





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