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

Geist plugin thresholds not working

Open dajones70 opened this issue 2 years ago • 7 comments

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

dajones70 avatar Jun 22 '22 21:06 dajones70

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

Sims24 avatar Jun 27 '22 14:06 Sims24

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.

dajones70 avatar Jun 28 '22 00:06 dajones70

So don't worry, I'll find the snmpwalk in the previous issue.

We'll keep you posted.

Sims24 avatar Jun 28 '22 07:06 Sims24

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

garnier-quentin avatar Jul 12 '22 15:07 garnier-quentin

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.

dajones70 avatar Aug 15 '22 12:08 dajones70

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.

garnier-quentin avatar Aug 16 '22 07:08 garnier-quentin