centreon-plugins
centreon-plugins copied to clipboard
Geist plugin thresholds not working
warning and critical thresholds appear to be ignored. No matter what value or range format I try, it always returns OK.
[root@icinga01 plugins]# '/usr/lib64/nagios/plugins/centreon-plugins/centreon_plugins.pl' '--plugin' 'hardware::sensors::geist::snmp::plugin' '--mode' 'sensors' '--hostname' '10.28.33.22' '--snmp-community' '********' '--snmp-port' '161' '--warning-climate-temperature' '27' '--critical-climate-temperature' '29' '--snmp-version' '2'
OK: Internal 'Watchdog 15' temperature 48.5 C, humidity 51.00 %, dew point 37.0555555555556 C | 'Watchdog 15#sensor.internal.temperature.celsius'=48.5C;;;; 'Watchdog 15#sensor.internal.humidity.percentage'=51.00%;;;0;100 'Watchdog 15#sensor.internal.dewpoint.celsius'=37.0555555555556C;;;;
The perf data is not showing the threshold either leading me to believe that these arguments are not "connected" to the code logic and it's using high default values.
Also, I am not able to change the number of decimal places with "--float-precision" either. Any argument I try seems to be ignored.
Finally, could the plugin be updated to provide Fahrenheit input and output for those of us in the United States. :)
Thanks in advance, Dave
Hi,
For the threshold in the perfdata, it seems you're not using the right option.
With --warning-internal-temperature or --critical-internal-temperature you will see the value in perfdata.
About Farenheit, there's an available OID in the MIB, so we will look into it to implement an option allowing to choose F instead of C.
If you can share a snmpwalk it would help (by mail if contains sensitive information).
Kind regards
What is the correct/right option then? Sorry, it's not clear to me based on the --help output or the perfdata.
There is another issue that contains the snmpwalk of this type of device that I found. It was te original request to have it added to the centreon plugin. I can provide another snmpwalk tomorrow if needed.
So don't worry, I'll find the snmpwalk in the previous issue.
We'll keep you posted.
You can configure the geist equipment to use fahrenheit. If you can configure your geist equipment like that and provide the full snmpwalk ? I think i don't manage it well
I don't have admin access to this device to change it to Fahrenheit. Zabbix is able to monitor it in F without changing any settings.
I can add an option for that specific mode. I would prefer to add a global option but i cant (it would be too dirty) without a refactoring.