Hello,
i have some models of Dell PowerConnect and most of them like the M8024-K/F, M6220, M6248 are detected as dnos-cpu but only the M8024F and M6248 have a processor usage > 0. The other models stays at 0%.
In fact they are at 30,40,50%…
Here are the models which have this issue :
M6220 : .1.3.6.1.4.1.674.10895.5000.2.6132.1.1.1.1.4.9.0
M8024-k : .1.3.6.1.4.1.674.10895.5000.2.6132.1.1.1.1.4.9.0
5424 : .1.3.6.1.4.1.674.10895.5000.2.6132.1.1.1.1.4.9.0
S4048-ON : F10-S-SERIES-CHASSIS-MIB::chStackUnitCpuUtil5Sec.1
8132F : .1.3.6.1.4.1.674.10895.5000.2.6132.1.1.1.1.4.9.0
Some poller.php : https://pastebin.com/qXUzURBw
As u can see, with the switches where the processor load stucks at 0 the script doesn’t launch the snmpwalk.
When i make the snmpwalk on the incriminated switch the result is correct :
I found a solution.
For the concerned switchs, the os is detected as “powerconnect” and the “processor” as dnos. The problem is on the script “includes/polling/processors/dnos-cpu.inc.php”.
This script makes a test on os types and works only for os = dnos
I modified the line 3 of dnos-cpu.inc.php by “if ($device[‘os’] == ‘dnos’ || ‘powerconnect’) {” and it works fine now.
SQL[SELECT * FROM devices WHERE disabled = 0 AND hostname = ‘172.16.43.111’ ORDER BY device_id ASC]
SQL[SELECT * FROM devices_attribs WHERE device_id = ‘32’]
Hostname: 172.16.43.111
Device ID: 32
OS: powerconnect
…
Load poller module processors
SQL[SELECT * FROM processors WHERE device_id = ‘32’] Processor CPU… DNOS CPU Usage0%
RRD[update /opt/librenms/rrd/172.16.43.111/processor-dnos-cpu-0.rrd N:0]
SQL[UPDATE processors set processor_usage =‘0’ WHERE processor_id = ‘245’]
Runtime for poller module ‘processors’: 0.0012 seconds with 2328 bytes
SQL[SELECT * FROM devices WHERE disabled = 0 AND hostname = ‘172.16.43.112’ ORDER BY device_id ASC]
SQL[SELECT * FROM devices_attribs WHERE device_id = ‘33’]
Hostname: 172.16.43.112
Device ID: 33
OS: powerconnect
…
Load poller module processors
SQL[SELECT * FROM processors WHERE device_id = ‘33’]
Processor CPU… DNOS CPU UsageSNMP[/usr/bin/snmpget -v2c -c COMMUNITY -Onvsbq -m F10-PRODUCTS-MIB -M /opt/librenms/mibs:/opt/librenms/mibs/dell:/opt/librenms/mibs/dnos udp:HOSTNAME:161 mib-2.1.2.0]
MIB search path: /opt/librenms/mibs:/opt/librenms/mibs/dell:/opt/librenms/mibs/dnos
Cannot find module (F10-PRODUCTS-MIB): At line 0 in (none)
mib-2.1.2.0: Unknown Object Identifier (Sub-id not found: (top) → mib-2)