Processor_usage at 0% with Dell PowerConnect (dnos-cpu)

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 :

/usr/bin/snmpget -v2c -c COMMUNITY -O Uqnv -M /opt/librenms/mibs:/opt/librenms/mibs/dell udp:M8024-k:161 .1.3.6.1.4.1.674.10895.5000.2.6132.1.1.1.1.4.9.0
" 5 Secs ( 35.27%) 60 Secs ( 33.01%) 300 Secs ( 32.74%) "

A the end of the pastbin i tried a poller.php on a S4048-ON but i think that the problem is different.

Here is a screenshot : https://snag.gy/2pjmaI.jpg
Can you help me?

Thanks.

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.

before :

LibreNMS Poller
Version info:
Commit SHA: b7f1e09be5ed80c4ee73c85788f6c47dc0293fed
Commit Date: 1492032601
DB Schema: 185
PHP: 7.0.16
MySQL: 5.5.52-MariaDB
RRDTool: 1.4.8
SNMP: NET-SNMP 5.7.2
DEBUG!
Starting polling run:

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

Unload poller module processors

after :

LibreNMS Poller
Version info:
Commit SHA: b7f1e09be5ed80c4ee73c85788f6c47dc0293fed
Commit Date: 1492032601
DB Schema: 185
PHP: 7.0.16
MySQL: 5.5.52-MariaDB
RRDTool: 1.4.8
SNMP: NET-SNMP 5.7.2
DEBUG!
Starting polling run:

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)

SNMP[/usr/bin/snmpget -v2c -c COMMUNITY -OvQ -M /opt/librenms/mibs:/opt/librenms/mibs/dell udp:HOSTNAME:161 .1.3.6.1.4.1.674.10895.5000.2.6132.1.1.1.1.4.9.0]
" 5 Secs ( 12.71%) 60 Secs ( 10.50%) 300 Secs ( 10.70%) "

12.71%
RRD[update /opt/librenms/rrd/172.16.43.112/processor-dnos-cpu-0.rrd N:12.71]
SQL[UPDATE processors set processor_usage =‘12.71’ WHERE processor_id = ‘244’]

Runtime for poller module ‘processors’: 0.0316 seconds with 3208 bytes

Unload poller module processors

I don’t know if it’s a bug but now my charts are not blank anymore :

Thanks

I’ve done the permanent fix here:

Thanks !! :slight_smile:

This is now merged in, please remove your change, update and test again.

Update done. All is working perfectly.
A big thanks ! :slight_smile: