How to load MIBs for a cisco?

Marco Borsani m.borsani at it.net
Thu Aug 4 15:02:24 CEST 2005


Hi all!

I am reading many documents about MIB, snmp and so on, but anywhere I found
a way to load other mibs on my nagios server.

Actually I have installed net-snmp-5.1.1 which have created dir
/usr/local/share/snmp/mibs that contain some MIB files.

I try to "add" other files to that dir, restart snmpdm daemon , but nothing
happened!

When I perform the command:
#> ./check_snmp -H 10.212.0.240 -o .1.3.6.1.4.1
I receive this error message:
SNMP problem - No data recieved from host
CMD: /usr/local/bin/snmpget -t 1 -r 9 -m ALL -v 1 -c public 10.212.0.240:161
.1.3.6.1.4.1

When I perform dircetly the command:
#> /usr/local/bin/snmpget -t 1 -r 9 -m ALL -v 1 -c public 10.212.0.240:161
.1.3.6.1.4.1
I receive this error message:
SNMPv2-SMI-v1: Module not found
Cannot find module (SNMPv2-SMI-v1): At line 10 in
/usr/local/share/snmp/mibs/CISCO-SMI-V1SMI.txt
Did not find 'enterprises' in module #-1
(/usr/local/share/snmp/mibs/CISCO-SMI-V1SMI.txt)
Unlinked OID in CISCO-SMI: cisco ::= { enterprises 9 }
Undefined identifier: enterprises near line 12 of
/usr/local/share/snmp/mibs/CISCO-SMI-V1SMI.txt
Error in packet
Reason: (noSuchName) There is no such variable name in this MIB.
Failed object: SNMPv2-SMI::enterprises

But, If I run following snmpwalk command I receive some (few) information:
#> snmpwalk -v 1 -c public 10.212.0.240
SNMPv2-MIB::sysDescr.0 = STRING: Cisco PIX Firewall Version 6.3(4)

SNMPv2-MIB::sysObjectID.0 = OID: SNMPv2-SMI::enterprises.9.1.390
SNMPv2-MIB::sysUpTime.0 = Timeticks: (140713600) 16 days, 6:52:16.00
SNMPv2-MIB::sysContact.0 = STRING:
SNMPv2-MIB::sysName.0 = STRING: firewall-vpn.my.org
SNMPv2-MIB::sysLocation.0 = STRING:
SNMPv2-MIB::sysServices.0 = INTEGER: 4
IF-MIB::ifNumber.0 = INTEGER: 2
IF-MIB::ifIndex.1 = INTEGER: 1
IF-MIB::ifIndex.2 = INTEGER: 2
.................

May anyone explain me where is my fault?

Regards

M.Borsani



-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null





More information about the Users mailing list