Module: check_mk
Branch: master
Commit: 7a1513acdf88e6da3d5b59cafcc8ee92b3cf2970
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=7a1513acdf88e6…
Author: Simon Betz <si(a)mathias-kettner.de>
Date: Tue Jan 31 15:51:19 2017 +0100
fixed 'invalid parameters' in services-of-host view
Change-Id: I28bea4f4200bb2ceb8a970e14cc94995afcb36ba
---
checks/hp_procurve_cpu | 4 +++-
checks/hp_procurve_mem | 3 ++-
2 files changed, 5 insertions(+), 2 deletions(-)
diff --git a/checks/hp_procurve_cpu b/checks/hp_procurve_cpu
index e49a7ec..9a45fef 100644
--- a/checks/hp_procurve_cpu
+++ b/checks/hp_procurve_cpu
@@ -27,7 +27,9 @@
# Relevant SNMP OIDs:
# 1.3.6.1.4.1.11.2.14.11.5.1.9.6.1
-hp_procurve_cpu_default_levels = (80, 90)
+
+hp_procurve_cpu_default_levels = (80.0, 90.0)
+
def inventory_hp_procurve_cpu(info):
if len(info) == 1 and int(info[0][0]) >= 0 <= 100:
diff --git a/checks/hp_procurve_mem b/checks/hp_procurve_mem
index 7de18d8..b3fc5e1 100644
--- a/checks/hp_procurve_mem
+++ b/checks/hp_procurve_mem
@@ -31,7 +31,8 @@
# hpLocalMemFreeBytes 1.3.6.1.4.1.11.2.14.11.5.1.1.2.1.1.1.6
# hpLocalMemAllocBytes 1.3.6.1.4.1.11.2.14.11.5.1.1.2.1.1.1.7
-factory_settings["hp_procurve_mem_default_levels"] = { "levels" :
("perc_used", (80, 90)) }
+
+factory_settings["hp_procurve_mem_default_levels"] = { "levels" :
("perc_used", (80.0, 90.0)) }
def inventory_hp_procurve_mem(info):