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 274 forks source link

[network::hirschmann::standard::snmp::plugin] --mode=memory negative values #4279

Closed joschi99 closed 1 year ago

joschi99 commented 1 year ago

Latest plugins

Probably the memory monitoring is not correct:

CRITICAL: Memory total: 318.19 MB used: -265.34 MB (-83.39%) free: 583.53 MB (183.39%) | 'memory.usage.bytes'=-278234112B;;;0;333642752 'memory.free.bytes'=611876864B;;;0;333642752 'memory.usage.percentage'=-83.39%;0:80;0:90;0;100
.1.3.6.1.4.1.248.11.22.1.8.1.0 = 1
.1.3.6.1.4.1.248.11.22.1.8.11.1.0 = 325823
.1.3.6.1.4.1.248.11.22.1.8.11.2.0 = 597536
.1.3.6.1.4.1.248.14.2.15.1.0 = undef
.1.3.6.1.4.1.248.14.2.15.3.1.0 = undef
.1.3.6.1.4.1.248.14.2.15.3.2.0 = undef

As I understand from this data:

But the SNMP MIB seems different looking this documentation: https://mibs.observium.org/mib/HM2-DIAGNOSTIC-MIB/ image

garnier-quentin commented 1 year ago

If i understand the allocated is the ram used (not the total). It's not very clear in the mib file. I can fix it.

garnier-quentin commented 1 year ago

https://github.com/centreon/centreon-plugins/pull/4280