Module: check_mk
Branch: master
Commit: 96e16cef9223a8b3be6ae1f6e9c261e8f504f684
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=96e16cef9223a8…
Author: Marcel Arentz <ma(a)mathias-kettner.de>
Date: Tue Sep 6 13:13:01 2016 +0200
3836 FIX Fixed perfometer in kentix multisensor rack
Perfometer of kentix multisensor rack formatted in degree and not percent.
---
.werks/3836 | 9 +++++++++
ChangeLog | 1 +
checks/kentix_humidity | 2 +-
3 files changed, 11 insertions(+), 1 deletion(-)
diff --git a/.werks/3836 b/.werks/3836
new file mode 100644
index 0000000..2145156
--- /dev/null
+++ b/.werks/3836
@@ -0,0 +1,9 @@
+Title: Fixed perfometer in kentix multisensor rack
+Level: 1
+Component: checks
+Compatible: compat
+Version: 1.4.0i1
+Date: 1473160272
+Class: fix
+
+Perfometer of kentix multisensor rack formatted in degree and not percent.
diff --git a/ChangeLog b/ChangeLog
index d5058fa..c8733ee 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -373,6 +373,7 @@
* 3781 FIX: ipmi: made check more robust against incomplete datasets
* 3700 FIX: FIX lparstat_aix.cpu_util usage of checkgroup parameters...
* 3798 FIX: Clusters: Fixed invalid timestamp of last cached agent data...
+ * 3836 FIX: Fixed perfometer in kentix multisensor rack...
Multisite:
* 3187 notification view: new filter for log command via regex
diff --git a/checks/kentix_humidity b/checks/kentix_humidity
index 30e81d3..178ecf3 100644
--- a/checks/kentix_humidity
+++ b/checks/kentix_humidity
@@ -31,7 +31,7 @@ def inventory_kentix_humidity(info):
def check_kentix_humidity(_no_item, _no_params, info):
value, lower_warn, upper_warn, alarm, text = info[0]
temp = float(value)/10
- perfdata = [ ("temp", temp, lower_warn+":"+upper_warn ) ]
+ perfdata = [ ("humidity", temp, lower_warn+":"+upper_warn ) ]
upper_warn = float(upper_warn)
lower_warn = float(lower_warn)
infotext = "%.1f%% (min/max at %.1f%%/%.1f%%)" % (temp, lower_warn,
upper_warn)