Search
j0ke.net Open Build Service
>
Projects
>
server:monitoring
:
icinga
:
production
>
check_mk
> check_mk-1.2.4p5-trip-points.patch
Sign Up
|
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
File check_mk-1.2.4p5-trip-points.patch of Package check_mk
# https://www.mail-archive.com/checkmk-en@lists.mathias-kettner.de/msg10981.html # # This patch will raise CRIT for "critical" status, and WARN for "hot". It # will not raise anything for "active" and "passive" states, but it will still # set the status info "(Trip Points reached: active (0))". # # A WARN will also be raised if a trip point is reached and the status is not # one of "critical", "host", "active", or "passive". Index: check_mk-1.2.4p5/lnx_thermal =================================================================== --- check_mk-1.2.4p5.orig/lnx_thermal +++ check_mk-1.2.4p5/lnx_thermal @@ -52,9 +52,11 @@ def check_lnx_thermal(item, params, info if tp_name == 'active': continue if cur > level: - if tp_name in [ 'hot', 'critical' ]: + if tp_name == 'critical': state = max(state, 2) - else: + elif tp_name == 'hot': + state = max(state, 1) + elif tp_name not in [ 'passive', 'active' ]: state = max(state, 1) tp_reached.append("%s (%d)" % (tp_name, tp_num))