lausser / check_nwc_health

nwc = network component. This plugin checks lots of aspects of routers, switches, wlan controllers, firewalls,.....
http://labs.consol.de/nagios/check_nwc_health
GNU General Public License v2.0
147 stars 87 forks source link

Notification when temperature changes to Yellow Threshold #251

Open DenFel opened 3 years ago

DenFel commented 3 years ago

Hi everybody,

we are using check_nwc_health in hardware-health mode on our Icinga2 to monitor switch temperatures. The output looks like:

Label | Value | Warning temp_1004 | 61.00 | 96.00

The warning temp is the temp of the red threshold. Is it possible to switch it to the yellow threshold temp?

Best regards Sven

lausser commented 3 years ago

I don’t know which model/manufacturer we are talking about. If the threshold was not set by you then it probably comes from some OID which represents an internal threshold.

You can always use something like.

--warningx temp_1004=65 –criticalx temp_1004=100

Von: DenFel [mailto:notifications@github.com] Gesendet: Montag, 10. August 2020 13:15 An: lausser/check_nwc_health check_nwc_health@noreply.github.com Cc: Subscribed subscribed@noreply.github.com Betreff: [lausser/check_nwc_health] Notification when temperature changes to Yellow Threshold (#251)

Hi everybody,

we are using check_nwc_health in hardware-health mode on our Icinga2 to monitor switch temperatures. The output looks like:

Label | Value | Warning temp_1004 | 61.00 | 96.00

The warning temp is the temp of the red threshold. Is it possible to switch it to the yellow threshold temp?

Best regards Sven

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/lausser/check_nwc_health/issues/251 , or unsubscribe https://github.com/notifications/unsubscribe-auth/AABQSOEJV7IA5RXZY3XW3PDR77JBXANCNFSM4PZ3ETBA .

DenFel commented 3 years ago

Waoh, thanks a lot for that pretty fast answer. We're using Cisco Catalyst 2960-X. The thresholds came from the OID's. I've tried it with "--warningx temp_1004=65 –criticalx temp_1004=100" earlier but its not working cause the OID's are used like i read in another post of you.

We would like to get a "Temperature not OK" when the yellow threshold is reached.

meni2029 commented 3 years ago

Hello,

I created pull #260 to fix the detection of warning state

ciscoEnvMonTemperatureThreshold is the critical threshold, therefore warning state is not detected with current code.

I've been told by network engineer that the critical threshold is set by manufacturer and cannot be changed. And the warning threshold is a configurable value as a delta °C below critical threshold. I have not been able to find this warning delta value in the snmp mib.

Thanks for the great plugin !