centreon-plugins icon indicating copy to clipboard operation
centreon-plugins copied to clipboard

Extreme Networks Plugin PSU Wattage Monitoring Not Working With Thresholds

Open matthttam opened this issue 1 year ago • 1 comments

Quick description

In one or two sentences, what it your bug about? Unable to check thresholds of psu power using the centreon_extreme.pl plugin.

How to reproduce

The example states that --critical='psu,.*,200' should work however that throws an error. Result: UNKNOWN: Wrong critical option 'psu,.*,200'. You can try --critical='psu.power,.*,1000:1000' and it is always OK regardless of power wattage. The command I am using (after redacting sensitive information) is: perl ./centreon_extreme.pl --plugin='network::extreme::snmp::plugin' --snmp-version='3' --snmp-timeout='10' --snmp-username='username' --authprotocol='authprotocol' --authpassphrase='pass' --privprotocol='privprotocol' --privpassphrase='pass' --hostname='IP' --mode='hardware' --component='psu' --critical='psu,.*,200'

Please provide below the initial conditions to reproduce the bug

  • Environment: result of uname -a ; cat /etc/redhat-release /etc/debian_version. Linux centreon-central 4.18.0-513.9.1.el8_9.x86_64 #1 SMP Sat Dec 2 05:23:44 EST 2023 x86_64 x86_64 x86_64 GNU/Linux

  • Version of the plugin: version of the package or last commit date if using a clone of this repository.

  • Name : centreon-plugin-Network-Extreme-Snmp Version : 20231215 Release : 102351.el8 Architecture : noarch Size : 527 k Source : centreon-plugin-Network-Extreme-Snmp-20231215-102351.el8.src.rpm Repository : @System From repo : centreon-plugins-23.10-stable-noarch Summary : centreon-plugin-Network-Extreme-Snmp URL : https://centreon.com License : Apache-2.0 Description : centreon-plugin-Network-Extreme-Snmp : Commit: a01beda687617c5fb3453e93ee39e4a9e0581dae

  • Information about the monitored resource: the exact model and version of the device, software or product you are trying to monitor. ExtremeXOS (X460G2-48p-10G4) version 32.6.1.5 32.6.1.5-patch1-2

  • Command line: the command line that is used. perl ./centreon_extreme.pl --plugin='network::extreme::snmp::plugin' --snmp-version='3' --snmp-timeout='10' --snmp-username='username' --authprotocol='authprotocol' --authpassphrase='pass' --privprotocol='privprotocol' --privpassphrase='pass' --hostname='IP' --mode='hardware' --component='psu' --critical='psu,.*,200'

Expected result

What you were expecting to have as a result (output, exit return). The plugin should allow a critical or warning based on the wattage returned.

Actual result

What you actually got. Please put emphasis on what seems wrong to you. Always OK regardless of values or says "UKNOWN" when using example.

Other requests

matthttam avatar Jan 10 '24 17:01 matthttam

Hello :)

I took your issue into account, thanks for this feedback. Indeed even without SNMP equipment I've the same error: perl centreon_plugins.pl --plugin=network::extreme::snmp::plugin --mode=hardware --hostname=toto --critical='psu,.*,200' UNKNOWN: Wrong critical option 'psu,.*,200'. and the other example looks working: perl centreon_plugins.pl --plugin=network::extreme::snmp::plugin --mode=hardware --hostname=toto --critical='psu.fan,1.1,5000' UNKNOWN: SNMP Session: unable to create Can you provide us an anonymized .snmpwalk (full snmpwalk of enterprise branch :snmpwalk -ObentU -v 2c -c public address .1.3.6.1.4.1 > equipment.snmpwalk) of your equipment to help us troubleshooting this issue ? This may help us a lot to simulate normal behavior and correct the option and its help involved.

Thanks for your patience 🙏

lucie-dubrunfaut avatar Jun 03 '24 14:06 lucie-dubrunfaut