Page 1 of 1

Monitoring ILO4 through SNMP

Posted: Thu Oct 21, 2021 3:36 am
by icsense
Hi,

It seems that I've got a similar issue as described in this thread. https://support.nagios.com/forum/viewto ... 16&t=52940

I'm trying to import a mib file that contains all relevant OID's for monitoring Proliant hardware via ILO4/ILO5. (DL3x0, BL460c)

I downloaded the mib tar.gz suggested in the linked topic and scp-ed all the files in there under /usr/share/snmb/mibs/ . Then I tried another snmpwalk but that fails. When I remove the mib,cfg,txt files that came from the mibs, the snmpwalk works again.

This is also true if I only import one mib file via the web interface.


[root@nagios mibs]# snmpwalk -v 2c -On -c public -O e iloblade003.icsense.com 1.3.6.1.4.1.232.3.2.3.1.1.4.0
Unlinked OID in HOST-RESOURCES-MIB: mib-2 ::= { mgmt 1 }
Undefined identifier: mgmt near line 14 of /usr/share/snmp/mibs/rfc1514.mib
Did not find 'hrMIBAdminInfo' in module HOST-RESOURCES-MIB (/usr/share/snmp/mibs/HOST-RESOURCES-TYPES.txt)
Did not find 'hrStorage' in module HOST-RESOURCES-MIB (/usr/share/snmp/mibs/HOST-RESOURCES-TYPES.txt)
Did not find 'hrDevice' in module HOST-RESOURCES-MIB (/usr/share/snmp/mibs/HOST-RESOURCES-TYPES.txt)
Unlinked OID in HOST-RESOURCES-TYPES: hostResourcesTypesModule ::= { hrMIBAdminInfo 4 }
Undefined identifier: hrMIBAdminInfo near line 7 of /usr/share/snmp/mibs/HOST-RESOURCES-TYPES.txt
Unlinked OID in HOST-RESOURCES-TYPES: hrFSTypes ::= { hrDevice 9 }
Undefined identifier: hrDevice near line 226 of /usr/share/snmp/mibs/HOST-RESOURCES-TYPES.txt
Unlinked OID in HOST-RESOURCES-TYPES: hrDeviceTypes ::= { hrDevice 1 }
Undefined identifier: hrDevice near line 108 of /usr/share/snmp/mibs/HOST-RESOURCES-TYPES.txt
Unlinked OID in HOST-RESOURCES-TYPES: hrStorageTypes ::= { hrStorage 1 }
Undefined identifier: hrStorage near line 37 of /usr/share/snmp/mibs/HOST-RESOURCES-TYPES.txt
Did not find 'zeroDotZero' in module SNMPv2-SMI (/usr/share/snmp/mibs/IP-MIB.txt)
Did not find 'zeroDotZero' in module SNMPv2-SMI (/usr/share/snmp/mibs/DISMAN-EVENT-MIB.txt)
Did not find 'zeroDotZero' in module SNMPv2-SMI (/usr/share/snmp/mibs/DISMAN-SCHEDULE-MIB.txt)
Cannot adopt OID in HOST-RESOURCES-TYPES: hostResourcesTypesModule ::= { hrMIBAdminInfo 4 }
.1.3.6.1.4.1.232.3.2.3.1.1.4.0.1 = INTEGER: 2
[root@nagios mibs]# find /usr/share/snmb/mibs -mmin -30 -exec rm -rf {} \; # remove the mib files I just scp-ed
rm: refusing to remove ‘.’ or ‘..’ directory: skipping ‘.’
[root@nagios mibs]# snmpwalk -v 2c -On -c public -O e iloblade003.icsense.com 1.3.6.1.4.1.232.3.2.3.1.1.4.0
.1.3.6.1.4.1.232.3.2.3.1.1.4.0.1 = INTEGER: 2
[root@nagios mibs]#

Re: Monitoring ILO4 through SNMP

Posted: Thu Oct 21, 2021 4:44 pm
by ssax
Doing that likely broke the MIBs (or the MIBs you copied in were already broken) which will output the errors like you are seeing.

Please run this command as root and send me the resulting /tmp/SNMPFILES.tar.gz file:

Code: Select all

GZIP=-9 tar czvf /tmp/SNMPFILES.tar.gz /etc/snmp /usr/share/snmp/mibs