Well, I've done some work with SNMP but now I'm starting to think I may have missed something in getting the files accessible. FWIW I downloaded the MIBs from HP's web site, unzipped them and copied them over to /usr/local/share/snmp/mibs. Anyway, I'm finding the items that snmpget is having problems with. For example:
Did not find 'mib-2' in module SNMPv2-SMI-v1 (/usr/local/share/snmp/mibs/host-resources-mib.mib)
Code: Select all
root@FreeNag:/usr/local/share/snmp/mibs # grep mib-2 host-resources-mib.mib
mib-2
host OBJECT IDENTIFIER ::= { mib-2 25 }
Unlinked OID in HOST-RESOURCES-MIB: host ::= { mib-2 25 } (<-- all caps MIB doesn’t exist)
Code: Select all
host OBJECT IDENTIFIER ::= { mib-2 25 }
Undefined identifier: mib-2 near line 109 of /usr/local/share/snmp/mibs/host-resources-mib.mib
Code: Select all
host OBJECT IDENTIFIER ::= { mib-2 25 }
This is line 109.
Did not find 'hrMIBAdminInfo' in module HOST-RESOURCES-MIB (/usr/local/share/snmp/mibs/HOST-RESOURCES-TYPES.txt)
Code: Select all
root@FreeNag:/usr/local/share/snmp/mibs # grep hrMIBAdminInfo HOST-RESOURCES-TYPES.txt
hrMIBAdminInfo, hrStorage, hrDevice FROM HOST-RESOURCES-MIB;
::= { hrMIBAdminInfo 4 }
Did not find 'hrStorage' in module HOST-RESOURCES-MIB (/usr/local/share/snmp/mibs/HOST-RESOURCES-TYPES.txt)
Code: Select all
root@FreeNag:/usr/local/share/snmp/mibs # grep hrStorage HOST-RESOURCES-TYPES.txt
hrMIBAdminInfo, hrStorage, hrDevice FROM HOST-RESOURCES-MIB;
-- Registrations for some storage types, for use with hrStorageType
hrStorageTypes OBJECT IDENTIFIER ::= { hrStorage 1 }
hrStorageOther OBJECT-IDENTITY
::= { hrStorageTypes 1 }
hrStorageRam OBJECT-IDENTITY
::= { hrStorageTypes 2 }
This list went up to 10 object IDs
Did not find 'hrDevice' in module HOST-RESOURCES-MIB (/usr/local/share/snmp/mibs/HOST-RESOURCES-TYPES.txt)
Code: Select all
root@FreeNag:/usr/local/share/snmp/mibs # grep hrDevice HOST-RESOURCES-TYPES.txt
hrMIBAdminInfo, hrStorage, hrDevice FROM HOST-RESOURCES-MIB;
-- Registrations for some device types, for use with hrDeviceType
hrDeviceTypes OBJECT IDENTIFIER ::= { hrDevice 1 }
hrDeviceOther OBJECT-IDENTITY
::= { hrDeviceTypes 1 }
hrDeviceUnknown OBJECT-IDENTITY
::= { hrDeviceTypes 2 }
This list went up to 21 devices.
Could this be an issue with case-sensitive names or extensions?
Code: Select all
root@FreeNag:/usr/local/share/snmp/mibs # ls -l host-resources*
-rw-r--r-- 1 root wheel 35164 Apr 15 15:56 host-resources-mib.cfg
-rw-r--r-- 1 root wheel 49362 Apr 15 15:56 host-resources-mib.mib
root@FreeNag:/usr/local/share/snmp/mibs # ls -l HOST-RESOURCES*
-r--r--r-- 1 root wheel 52544 Mar 13 2013 HOST-RESOURCES-MIB.txt
-r--r--r-- 1 root wheel 10583 Mar 13 2013 HOST-RESOURCES-TYPES.txt
root@FreeNag:/usr/local/share/snmp/mibs #
Thanks,
Joe B