Module: check_mk
Branch: master
Commit: cdb16046ff61095b9e36330b948ab19cf0812848
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=cdb16046ff6109…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Fri Dec 16 11:27:52 2011 +0100
FIX: mem.vmalloc: fix default levels
---
ChangeLog | 1 +
checkman/mem.vmalloc | 2 +-
checks/mem | 2 +-
3 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index 18eff2c..a6a9b0f 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -112,6 +112,7 @@
* FIX: snmp_uptime: handels alternative timeformat
* FIX: netapp_*: scan functions now detect IBM versions of firmware
* FIX: bluecoat_diskcpu: repair scan function
+ * FIX: mem.vmalloc: fix default levels (32 and 64 was swapped)
1.1.12p4:
Multisite:
diff --git a/checkman/mem.vmalloc b/checkman/mem.vmalloc
index a4f2ef0..f530555 100644
--- a/checkman/mem.vmalloc
+++ b/checkman/mem.vmalloc
@@ -52,5 +52,5 @@ crit_chunk (int or float): critical level for the size of the
[configuration]
mem_vmalloc_default_levels (int/float, int/float, int/float, int/float):
Levels used by checks created by inventory. The default value is set
- to {(80.0, 90.0, 32, 64)}.
+ to {(80.0, 90.0, 64, 32)}.
diff --git a/checks/mem b/checks/mem
index f2d3321..92112aa 100644
--- a/checks/mem
+++ b/checks/mem
@@ -208,7 +208,7 @@ check_info['mem.win'] = (check_mem_windows, "Memory and
pagefile", 1, inventory_
# +----------------------------------------------------------------------+
# warn, crit, warn_chunk, crit_chunk. Integers are in MB, floats are in percent
-mem_vmalloc_default_levels = ( 80.0, 90.0, 32, 64 )
+mem_vmalloc_default_levels = ( 80.0, 90.0, 64, 32 )
def inventory_mem_vmalloc(info):
meminfo = parse_proc_meminfo(info)