Module: check_mk
Branch: master
Commit: 9275ce5b9af73aacddd9473e67e10b5747c32e81
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=9275ce5b9af73a…
Author: Bernd Stroessenreuther <bs(a)mathias-kettner.de>
Date: Thu Nov 21 11:15:46 2013 +0100
brocade_mlx: at memory and CPU checks return a clear UNKNOWN message, if line module is
not running
---
checks/brocade_mlx | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/checks/brocade_mlx b/checks/brocade_mlx
index 9eb14b3..582f920 100644
--- a/checks/brocade_mlx
+++ b/checks/brocade_mlx
@@ -161,6 +161,9 @@ def check_brocade_mlx_module_mem(item, params, info):
warn, crit = params["levels"]
for module_id, module_descr, module_state, mem_total, mem_avail in info[2]:
if combine_item(module_id, module_descr) == item:
+ if module_state != "10":
+ return 3, "Module is not in state 10 (running)"
+
mem_avail = saveint(mem_avail)
mem_total = saveint(mem_total)
mem_used = mem_total - mem_avail
@@ -219,6 +222,9 @@ def check_brocade_mlx_module_cpu(item, params, info):
warn, crit = params["levels"]
for module_id, module_descr, module_state, mem_total, mem_avail in info[2]:
if combine_item(module_id, module_descr) == item:
+ if module_state != "10":
+ return 3, "Module is not in state 10 (running)"
+
cpu_util1 = ""
cpu_util5 = ""
cpu_util60 = ""