[checkmk-commits] Check_MK Git: check_mk: changed humidity default_values to defaultvalues to maintain compatibilty

Lutz Helwing lh at mathias-kettner.de
Thu Feb 5 12:14:53 CET 2015


Module: check_mk
Branch: master
Commit: 0d8b18ebc9d1a0ae265f350c9a4f6efc8833f8a9
URL:    http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=0d8b18ebc9d1a0ae265f350c9a4f6efc8833f8a9

Author: Lutz Helwing <lh at mathias-kettner.de>
Date:   Thu Feb  5 11:58:17 2015 +0100

changed humidity default_values to defaultvalues to maintain compatibilty

---

 checks/akcp_exp_humidity    |    2 +-
 checks/akcp_sensor.include  |    6 ++++--
 checks/akcp_sensor_humidity |    5 -----
 3 files changed, 5 insertions(+), 8 deletions(-)

diff --git a/checks/akcp_exp_humidity b/checks/akcp_exp_humidity
index 37730aa..f6a6463 100644
--- a/checks/akcp_exp_humidity
+++ b/checks/akcp_exp_humidity
@@ -32,7 +32,7 @@
 check_info["akcp_exp_humidity"] = {
     "check_function"      : check_akcp_sensor_humidity,
     "inventory_function"  : lambda info: inventory_akcp_sensor(info, \
-                                            "akcp_humidity_default_levels"),
+                                            "akcp_humidity_defaultlevels"),
     "service_description" : "Humidity %s",
     "has_perfdata"        : True,
     "snmp_scan_function"  : snmp_scan_akcp_exp,
diff --git a/checks/akcp_sensor.include b/checks/akcp_sensor.include
index 5fff713..eee5fd4 100644
--- a/checks/akcp_sensor.include
+++ b/checks/akcp_sensor.include
@@ -25,8 +25,10 @@
 # Boston, MA 02110-1301 USA.
 
 
-# These values were specified in the original check
-akcp_humidity_default_levels = (35, 40, 60, 65)
+# These values were determined by the author of the original check
+# akcp_sensor_humidity
+# This variable does not compy to the check guidelines. This has to be fixed one day.
+akcp_humidity_defaultlevels = (35, 40, 60, 65)
 
 
 factory_settings["akcp_temp_default_levels"] = {
diff --git a/checks/akcp_sensor_humidity b/checks/akcp_sensor_humidity
index 17c6d14..50d6928 100644
--- a/checks/akcp_sensor_humidity
+++ b/checks/akcp_sensor_humidity
@@ -25,11 +25,6 @@
 # Boston, MA 02110-1301 USA.
 
 
-# This variable exists to maintain compatibility with already installed checks.
-# When this check gets reworked some day we shall use the guideline-compliant
-# akcp_humidity_default_levels variable from akcp_sensor.include instead.
-akcp_sensor_humidity_defaultlevels = (35, 40, 60, 65)
-
 # Example for contents of info
 #      description       percent  status  online
 # ["Humdity1 Description", "0",    "0",    "2"]



More information about the checkmk-commits mailing list