[mrtg] Problem loading MIB file, Unknown SNMP var

Fred Weston mrtg-list at fredweston.net
Wed Oct 6 23:30:42 CEST 2010


I'm trying to use MRTG to graph the number of active DS0 channels on my
Cisco voice gateway.  I've downloaded the CISCO-POP-MGMT-MIB MIB file from
Cisco and added it to my mrtg.cfg file, however when I try to access objects
by name, MRTG complains that the names are invalid:

Unknown SNMP var cpmActiveDS0s
 at /usr/bin/mrtg line 2207
Unknown SNMP var cpmActiveDS0s
 at /usr/bin/mrtg line 2207
2010-10-06 17:15:56: ERROR: Target[vgtest][_IN_] ' $target->[0]{$mode} ' did
not eval into defined data
2010-10-06 17:15:56: ERROR: Target[vgtest][_OUT_] ' $target->[0]{$mode} '
did not eval into defined data

Here is my MRTG.cfg file:

# Global configuration
WorkDir: /mrtg
WriteExpires: Yes
LoadMIBs: /usr/share/snmp/mibs/CISCO-POP-MGMT-MIB.my

Target[vgtest]:
cpmActiveDS0s&cpmActiveDS0s:public at 10.24.2.18<cpmActiveDS0s%26cpmActiveDS0s%3Apublic at 10.24.2.18>
Title[vgtest]: Channels in Use
PageTop[vgtest]: <H1>Voice Channels in Use</H1>
MaxBytes[vgtest]: 46
YLegend[vgtest]: Channels
LegendI[vgtest]: Channels Used
ShortLegend[vgtest]: Channels
Options[vgtest]: gauge

If I do an snmpwalk, the cpmActiveDS0s name works fine:

cacti:/home/fredw# snmpwalk -v 2c -c public 10.24.2.18 cpmActiveDS0s
CISCO-POP-MGMT-MIB::cpmActiveDS0s.0 = Gauge32: 0
cacti:/home/fredw#

How can I determine where the failure is occurring?  It looks like MRTG
isn't loading the MIB file, but I don't get any errors about it.

Regards,
Fred
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.oetiker.ch/pipermail/mrtg/attachments/20101006/e2cdad7d/attachment.htm 


More information about the mrtg mailing list