Module: check_mk
Branch: master
Commit: aa9a35dd446af50a131160680959848ddc821108
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=aa9a35dd446af5…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Wed Mar 4 14:53:33 2015 +0100
hp_procurve_mem: fixed crash due to new memory.include
---
checks/hp_procurve_mem | 2 +-
checks/memory.include | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/checks/hp_procurve_mem b/checks/hp_procurve_mem
index 0ea0aeb..27bd55d 100644
--- a/checks/hp_procurve_mem
+++ b/checks/hp_procurve_mem
@@ -42,7 +42,7 @@ def inventory_hp_procurve_mem(info):
def check_hp_procurve_mem(item, params, info):
if len(info) == 1:
mem_total, mem_used = [ int(mem) for mem in info[0] ]
- return check_memory(mem_used, mem_total, params)
+ return check_memory_simple(mem_used, mem_total, params)
check_info["hp_procurve_mem"] = {
diff --git a/checks/memory.include b/checks/memory.include
index 4b474f3..b8d48fc 100644
--- a/checks/memory.include
+++ b/checks/memory.include
@@ -24,7 +24,7 @@
# to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
# Boston, MA 02110-1301 USA.
-def check_memory(used, total, params):
+def check_memory_simple(used, total, params):
# Convert old-style tuple params to dict
if params:
if type(params) == tuple: