centreon / centreon-plugins

Collection of standard plugins to discover and gather cloud-to-edge metrics and status across your whole IT infrastructure.
https://www.centreon.com
Apache License 2.0
310 stars 273 forks source link

Synology NAS plugin reporting CPU constantly 100% utiliz #3942

Closed rmorandell-pgum closed 1 year ago

rmorandell-pgum commented 1 year ago

We use the last plugin version 220616 and the plugin " plugin=storage::synology::snmp::plugin --mode=cpu".

The plugin uses snmp_standard::mode::cpu for CPU. The OID behind it my $oid_cputable = '.1.3.6.1.2.1.25.3.3.1.2'; This works well for some Synology NAS models like the DS213j.

We now have a NAS DS216se that always returns 100% using this standard OID.

snmpwalk -c 'xxx' -v 2c xxx.xxx.xxx.xxx .1.3.6.1.2.1.25.3.3.1.2 HOST-RESOURCES-MIB::hrProcessorLoad.196608 = INTEGER: 100

However, if we use the Synolog OIDs we could return more exat values.

-bash-4.2$ snmpwalk -c 'xxx' -v 2c xxx.xxx.xxx .1.3.6.1.4.1.2021.11.10.0 UCD-SNMP-MIB::ssCpuSystem.0 = INTEGER: 4 -bash-4.2$ snmpwalk -c 'xxx!' -v 2c xxx.xxx.xxx .1.3.6.1.4.1.2021.11.9.0 UCD-SNMP-MIB::ssCpuUser.0 = INTEGER: 93

Can we change the plugin to a dedicated cpu mode for Synology

image

Here the link for the synology MIB

https://global.download.synology.com/download/Document/Software/DeveloperGuide/Firmware/DSM/All/enu/Synology_DiskStation_MIB_Guide.pdf

Thanks a lot

Kind regards

garnier-quentin commented 1 year ago

You can use the plugin os::linux::snmp and the mode cpu-detailed.

Or i can add to the standard cpu mode: --use-ucd and check ssCpuIdle

rmorandell-pgum commented 1 year ago

ok for workaround this is fine. But for the plugin would maybe be better to sum the User and the System CPU ?

image

rmorandell-pgum commented 1 year ago

Often the values of snmp linux standard are unfortunately completely wrong because fixed at 100 although the real ones are not 5%.

image

UCD-SNMP-MIB::ssCpuUser.0 = INTEGER: 1 UCD-SNMP-MIB::ssCpuSystem.0 = INTEGER: 6 HOST-RESOURCES-MIB::hrProcessorLoad.196608 = INTEGER: 100

UCD-SNMP-MIB::ssCpuUser.0 = INTEGER: 0 UCD-SNMP-MIB::ssCpuSystem.0 = INTEGER: 7 HOST-RESOURCES-MIB::hrProcessorLoad.196608 = INTEGER: 100

garnier-quentin commented 1 year ago

You have the option --use-ucd: https://github.com/centreon/centreon-plugins/pull/3943