Module: check_mk
Branch: master
Commit: f6c1d965bfb432c13724db0eeb540544095f17af
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=f6c1d965bfb432…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Wed Jan 14 13:19:38 2015 +0100
#1812 FIX juniper_screenos_mem: Fixed too large memory reported (byte <> kbyte
mixup)
---
.werks/1812 | 9 +++++++++
ChangeLog | 1 +
checks/juniper_screenos_mem | 2 +-
3 files changed, 11 insertions(+), 1 deletion(-)
diff --git a/.werks/1812 b/.werks/1812
new file mode 100644
index 0000000..074edff
--- /dev/null
+++ b/.werks/1812
@@ -0,0 +1,9 @@
+Title: juniper_screenos_mem: Fixed too large memory reported (byte <> kbyte mixup)
+Level: 1
+Component: checks
+Class: fix
+Compatible: compat
+State: unknown
+Version: 1.2.7i1
+Date: 1421237757
+
diff --git a/ChangeLog b/ChangeLog
index 09d6432..791787c 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -62,6 +62,7 @@
* 1848 FIX: df: title of pnp graphs for filesystem checks fixed...
* 1209 FIX: livestatus_status: Check handles cluster using in cluster now
* 1809 FIX: cisco_temp_perf: Fixed exception when no temperature threshold provided
by device
+ * 1812 FIX: juniper_screenos_mem: Fixed too large memory reported (byte <>
kbyte mixup)
Multisite:
* 1758 Improved exception hander: Shows details without additional debug request,
added mailto link for error report...
diff --git a/checks/juniper_screenos_mem b/checks/juniper_screenos_mem
index 46444ee..b2dbd5b 100644
--- a/checks/juniper_screenos_mem
+++ b/checks/juniper_screenos_mem
@@ -27,7 +27,7 @@
def parse_juniper_screenos_mem(info):
new_info = []
for used, free in info:
- new_info.append([used, int(used)+int(free)])
+ new_info.append([int(used)/1024, (int(used)+int(free))/1024])
return new_info
check_info["juniper_screenos_mem"] = {