Module: check_mk
Branch: master
Commit: d7aa7e4766f9e1aeecaed05d2fab2b7e6ff58be5
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=d7aa7e4766f9e1…
Author: Bastian Kuhn <bk(a)mathias-kettner.de>
Date: Wed Jan 15 16:52:23 2014 +0100
Fixed copy and paste bug
---
checks/apc_humidity | 4 ++--
checks/stulz_humidity | 3 ++-
2 files changed, 4 insertions(+), 3 deletions(-)
diff --git a/checks/apc_humidity b/checks/apc_humidity
index 0b9b4b3..9dc67be 100644
--- a/checks/apc_humidity
+++ b/checks/apc_humidity
@@ -36,8 +36,8 @@ def check_apc_humidity(item, params, info):
if line[0] == item:
humidity = saveint(line[1])
warnlow, critlow, warnhigh, crithigh = params
- 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, critlow, warnlow, 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 87e267c..53ce479 100644
--- a/checks/stulz_humidity
+++ b/checks/stulz_humidity
@@ -34,7 +34,8 @@ def check_stulz_humidity(item, params, info):
if line[0] == item:
warnlow, critlow, warnhigh, crithigh = params
humidity = savefloat(line[1])/10
- infotext = "%s%%" % humidity + " (warn/crit below %.1f/%.1f or
above %.1f/%.1f %%" % \
+ infotext = "%s%% (warn/crit below %.1f/%.1f or above %.1f/%.1f %%)"
% \
+ ( humidity, critlow, warnlow, warnhigh, crithigh)
perfdata = [ ('humidity', humidity, critlow, warnlow, warnhigh,
crithigh ) ]
if humidity <= critlow or humidity >= crithigh: