Module: check_mk
Branch: master
Commit: 069285c6b94c9a2bd20f042757491409d415a4ed
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=069285c6b94c9a…
Author: Bastian Kuhn <bk(a)mathias-kettner.de>
Date: Thu Sep 3 14:45:43 2015 +0200
#1290 FIX brocade_mlx_fan: Fix: Not longer add fans who not are present while discovery
---
.werks/1290 | 10 ++++++++++
ChangeLog | 1 +
checks/brocade_mlx_fan | 4 +++-
3 files changed, 14 insertions(+), 1 deletion(-)
diff --git a/.werks/1290 b/.werks/1290
new file mode 100644
index 0000000..ce2e541
--- /dev/null
+++ b/.werks/1290
@@ -0,0 +1,10 @@
+Title: brocade_mlx_fan: Fix: Not longer add fans who not are present while discovery
+Level: 1
+Component: checks
+Class: fix
+Compatible: compat
+State: unknown
+Version: 1.2.7i3
+Date: 1441284316
+
+
diff --git a/ChangeLog b/ChangeLog
index a3565fd..0a420d6 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -163,6 +163,7 @@
* 2568 FIX: apache_status: fixed computation of bytes and requests per second...
* 2557 FIX: cmciii_lcp_airin cmciii_lcp_airout cmciii_lcp_waterin
cmciii_lcp_waterout: Fixed exception parsing data from some devices
* 2558 FIX: cmciii.temp: Do not discover air temperature sensors anymore...
+ * 1290 FIX: brocade_mlx_fan: Fix: Not longer add fans who not are present while
discovery
Multisite:
* 2385 SEC: Fixed possible reflected XSS on all GUI pages where users can produce
unhandled exceptions...
diff --git a/checks/brocade_mlx_fan b/checks/brocade_mlx_fan
index 45e879a..385c2b5 100644
--- a/checks/brocade_mlx_fan
+++ b/checks/brocade_mlx_fan
@@ -33,7 +33,9 @@ def brocade_mlx_fan_combine_item(id, descr):
def inventory_brocade_mlx_fan(info):
inventory = []
for fan_id, fan_descr, fan_state in info:
- inventory.append((brocade_mlx_fan_combine_item(fan_id, fan_descr), None))
+ # Only add Fans who are present
+ if fan_state != "1":
+ inventory.append((brocade_mlx_fan_combine_item(fan_id, fan_descr), None))
return inventory
def check_brocade_mlx_fan(item, _no_params, info):