librenms / librenms

Community-based GPL-licensed network monitoring system
https://www.librenms.org
Other
3.84k stars 2.29k forks source link

can't discover physicalDiskState from iDrac7 #12742

Closed tigershen closed 3 years ago

tigershen commented 3 years ago

can't discover physicalDiskState from iDrac7 version 2.65.65.65

so I try to run command by hand

snsnmpbulkwalk -v2c -c public -OQuse -m DELL-RAC-MIB:IDRAC-MIB-SMIv2 -M /usr/local/www/librenms/mibs:/usr/local/www/librenms/mibs/drac:/usr/local/www/librenms/mibs/dell -t 5 -r 1 10.10.24.235 DELL-RAC-MIB::physicalDiskTable

physicalDiskTable = No Such Object available on this agent at this OID
snmpbulkwalk -v2c -c public -OQuse -m DELL-RAC-MIB:IDRAC-MIB-SMIv2 -M /usr/local/www/librenms/mibs:/usr/local/www/librenms/mibs/drac:/usr/local/www/librenms/mibs/dell -t 5 -r 1 10.10.24.235 IDRAC-MIB-SMIv2::physicalDiskTable
physicalDiskNumber.1 = 1
physicalDiskNumber.2 = 2
physicalDiskNumber.3 = 3
physicalDiskNumber.4 = 4
physicalDiskNumber.5 = 5
physicalDiskNumber.6 = 6
physicalDiskName.1 = Physical Disk 0:1:0
physicalDiskName.2 = Physical Disk 0:1:1
physicalDiskName.3 = Physical Disk 0:1:2
physicalDiskName.4 = Physical Disk 0:1:3
physicalDiskName.5 = Physical Disk 0:1:4
physicalDiskName.6 = Physical Disk 0:1:5

looks like IDRAC-MIB-SMIv2::physicalDiskTable is correct oid

so I modify this file /includes/definitions/discovery/drac.yaml from

                    oid: DELL-RAC-MIB::physicalDiskTable
                    num_oid: '.1.3.6.1.4.1.674.10892.2.6.1.20.130.4.1.4.{{ $index }}'

to

                    oid: IDRAC-MIB-SMIv2::controllerTable
                    num_oid: '.1.3.6.1.4.1.674.10892.5.5.1.20.130.1.{{ $index }}'

it's working now.

not sure about other version of iDrac

just post this issues here let others know

murrant commented 3 years ago

Glad you got it fixed. Would be cool if you submit a change to upstream to fix it for others too.