Module: check_mk
Branch: master
Commit: b7dfa6216bddde2f1eb5fb371c01bd76c98351bb
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=b7dfa6216bddde…
Author: Bastian Kuhn <bk(a)mathias-kettner.de>
Date: Fri Jan 17 12:29:23 2014 +0100
Fixed optical output of a few humidity checks
---
checks/akcp_sensor_humidity | 4 ++--
checks/apc_humidity | 2 +-
checks/stulz_humidity | 2 +-
3 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/checks/akcp_sensor_humidity b/checks/akcp_sensor_humidity
index 9f373ae..085805e 100644
--- a/checks/akcp_sensor_humidity
+++ b/checks/akcp_sensor_humidity
@@ -48,8 +48,8 @@ def check_akcp_sensor_humidity(item, params, info):
else:
if online == "1":
inthumidity = saveint(humidity)
- infotext = "%s %%" % humidity + " (warn/crit below
%.1f/%.1f or above %.1f/%.1f %%" % \
- (critlow, warnlow, warnhigh, crithigh) + ")"
+ infotext = "%s%% (warn/crit below %.1f/%.1f or above %.1f/%.1f
%%)" % \
+ ( humidity, warnlow, critlow, warnhigh, crithigh)
perfdata = [ ( "humidity", humidity, critlow, warnlow,
warnhigh, crithigh ) ]
if inthumidity <= critlow or inthumidity >= crithigh:
return (2, "Humidity is: " + infotext, perfdata )
diff --git a/checks/apc_humidity b/checks/apc_humidity
index 8b2f7fb..af6ebdf 100644
--- a/checks/apc_humidity
+++ b/checks/apc_humidity
@@ -37,7 +37,7 @@ def check_apc_humidity(item, params, info):
humidity = saveint(line[1])
critlow, warnlow, warnhigh, crithigh = params
infotext = "%s%% (warn/crit below %.1f/%.1f or above %.1f/%.1f %%)"
% \
- ( humidity, critlow, warnlow, warnhigh, crithigh)
+ ( humidity, warnlow, critlow, warnhigh, crithigh)
perfdata = [ ( "humidity", humidity, critlow, warnlow, warnhigh,
crithigh ) ]
if humidity <= critlow or humidity >= crithigh:
return (2, "Humidity is: " + infotext, perfdata )
diff --git a/checks/stulz_humidity b/checks/stulz_humidity
index d6b67c9..b2956fd 100644
--- a/checks/stulz_humidity
+++ b/checks/stulz_humidity
@@ -35,7 +35,7 @@ def check_stulz_humidity(item, params, info):
critlow, warnlow, warnhigh, crithigh = params
humidity = savefloat(line[1])/10
infotext = "%s%% (warn/crit below %.1f/%.1f or above %.1f/%.1f %%)"
% \
- ( humidity, critlow, warnlow, warnhigh, crithigh)
+ ( humidity, warnlow, critlow, warnhigh, crithigh)
perfdata = [ ('humidity', humidity, critlow, warnlow, warnhigh,
crithigh ) ]
if humidity <= critlow or humidity >= crithigh: