Module: check_mk
Branch: master
Commit: 60e7897cc4d27885f3839e772d5a709570ffdf81
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=60e7897cc4d278…
Author: Bernd Stroessenreuther <bs(a)mathias-kettner.de>
Date: Thu Dec 5 09:48:33 2013 +0100
brocade_mlx: now handles more different module states
If a module in a Brocade MLX device reports status configured/stacking or
blocked for full height card the check now returns WARN and a meaningful
message (instead of UNKNOWN before)
---
.werks/85 | 10 ++++++++++
ChangeLog | 1 +
checks/brocade_mlx | 4 ++++
3 files changed, 15 insertions(+)
diff --git a/.werks/85 b/.werks/85
new file mode 100644
index 0000000..1aafa58
--- /dev/null
+++ b/.werks/85
@@ -0,0 +1,10 @@
+Title: brocade_mlx: now handles more different module states
+Level: 1
+Component: checks
+Version: 1.2.3i7
+Date: 1386233089
+Class: feature
+
+If a module in a Brocade MLX device reports status configured/stacking or
+blocked for full height card the check now returns WARN and a meaningful
+message (instead of UNKNOWN before)
diff --git a/ChangeLog b/ChangeLog
index ade6e7d..aff3e74 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -40,6 +40,7 @@
* 0238 vsphere monitoring: new option to skip placeholder vms in agent output...
* 0016 Linux+Windows agent: allow spooling plugin outputs via files...
* 0017 local: New state type P for state computation based on perfdata...
+ * 0085 brocade_mlx: now handles more different module states...
* 0024 FIX: cisco_wlc: removed check configuration parameter ap_model...
* 0003 FIX: ps: Remove exceeding [ and ] in service description when using process
inventory...
* 0037 FIX: checkman browser (cmk -m) was not working properly in network subtree...
diff --git a/checks/brocade_mlx b/checks/brocade_mlx
index 8d7ccf4..ed76795 100644
--- a/checks/brocade_mlx
+++ b/checks/brocade_mlx
@@ -64,10 +64,14 @@ def check_brocade_mlx_module(item, _no_params, info):
return 2, "Module reports status 3 (rejected)"
elif module_state == "4":
return 2, "Module reports status 4 (bad)"
+ elif module_state == "8":
+ return 1, "Module reports status 8 (configured / stacking)"
elif module_state == "9":
return 1, "Module reports status 9 (coming up)"
elif module_state == "10":
return 0, "Module reports status 10 (running)"
+ elif module_state == "11":
+ return 1, "Module reports status 11 (blocked for full height
card)"
else:
return 3, "Module reports unidentified status %s" %
module_state
return 3, "Module %s not found" % item