Question

SNMP check RAM returns negative value for Hirschmann switch

  • 26 July 2022
  • 6 replies
  • 164 views

Badge +1

Hello,
I am using the Hirschmann plugin pack to monitor a switch.
The memory service returns a strange critical error:

CRITICAL: Memory total: 79.77 MB used: -87.12 MB (-109.22%) free: 166.88 MB (209.22%)

Here is the command :

/usr/lib/centreon/plugins//centreon_hirschmann.pl --plugin=network::hirschmann::standard::snmp::plugin --mode=memory --hostname=10.0.X.X --snmp-version='3'  --privpassphrase='XX' --authprotocol='MD5' --snmp-username='admin' --privprotocol='DES' --authpassphrase='XX' --warning-memory-usage-prct='80' --critical-memory-usage-prct='90'

 

The other checks are not a problem: CPU, Process, Hardware…

The poller is installed on a debian server and the version of the net-snmp package is 5.9+dfsg-3

Is there a solution to this problem?

Best regards


6 replies

Userlevel 6
Badge +19

Hi,

 

The problem comes probably from the version of net-snmp on the Hirschmann. 

Could you try to add --patch-redhat option to your command to see if you get more relevant values?

 

Kind regards,

Badge +1

Hello Sims24,

Thank you for your reply
The command does not accept the option --patch-redhat

 

I get this error :

Unknown option: patch-redhat at /usr/lib/centreon/plugins//centreon_hirschmann.pl line 141.

Best regards

Userlevel 6
Badge +19

Hello, 

 

Ok, my bad, I thought it used the common Linux memory check. 


Then, can you share the result of your first command with --debug enabled plz? ​​​​

Badge +1

No problem.

Here is the result :

CRITICAL: Memory total: 82.02 MB used: -82.62 MB (-100.73%) free: 164.63 MB (200.73%) | 'memory.usage.bytes'=-86630400B;;;0;85999616 'memory.free.bytes'=172630016B;;;0;85999616 'memory.usage
.percentage'=-100.73%;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 = 83984
.1.3.6.1.4.1.248.11.22.1.8.11.2.0 = 168584
.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

Thanks

Userlevel 6
Badge +19

Looks like a problem on the device, maybe you could check with your support?


You can provide the debug to show them than the free RAM OID value is greater than the total one. 

 

.1.3.6.1.4.1.248.11.22.1.8.11.1.0 = 83984 => Total RAM

.1.3.6.1.4.1.248.11.22.1.8.11.2.0 = 168584 => Free RAM

 

Simon

 


 

 

 

Badge +1

OK, thanks.
I will see with the support of the manufacturer.

Reply