[mrtg] Debugging LoadMIBs

Alex_M reg at crete.org.ua
Wed Nov 19 19:27:36 CET 2008


Hello,

is there a possibility to debug MIB loading?
I want to load some Juniper MIBs and and make SNMP queries by MIB names, not
OIDs. 
I've added MIBs to LoadMIBs option but mrtg still says "Unknown SNMP var
jnxOperatingCPU.9.1.0.0".
I've searched through an archive but was not able to find clear solution...

Here is an example:

# snmpwalk -v2c -c ro-comm
-m+/data/noc/mrtg/MIBs/Juniper/mib-jnx-chassis.txt
-M+/data/noc/mrtg/MIBs/Juniper cr1-igo jnxOperatingCPU.9.1.0.0
JUNIPER-MIB::jnxOperatingCPU.9.1.0.0 = Gauge32: 1

# mrtg j.cfg 
mrtg j.cfg 
Unknown SNMP var jnxOperatingCPU.9.1.0.0
 at /usr/local/bin/mrtg line 2202
Unknown SNMP var jnxOperatingCPU.9.1.0.0
 at /usr/local/bin/mrtg line 2202
2008-11-19 20:25:01: ERROR: Target[cr1-igo][_IN_] ' $target->[0]{$mode} '
did not eval into defined data
2008-11-19 20:25:01: ERROR: Target[cr1-igo][_OUT_] ' $target->[0]{$mode} '
did not eval into defined data

# grep LoadMIBs j.cfg 
grep LoadMIBs j.cfg 
LoadMIBs: /usr/local/share/snmp/mibs/SNMPv2-SMI.txt,
/usr/local/share/snmp/mibs/SNMPv2-TC.txt,
/data/noc/mrtg/MIBs/Juniper/mib-jnx-smi.txt,
/data/noc/mrtg/MIBs/Juniper/mib-jnx-chassis.txt

How to debug it? Thanks in advance!

-- Alexander
-- 
View this message in context: http://n2.nabble.com/Debugging-LoadMIBs-tp1520058p1520058.html
Sent from the MRTG Users Mailinglist mailing list archive at Nabble.com.



More information about the mrtg mailing list