Module: check_mk
Branch: master
Commit: d515d70c1ac3853a159ffff938263c9d686815ec
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=d515d70c1ac385…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Mon Dec 16 13:28:25 2013 +0100
FIX cisco_fantray: Fixed error on Cisco devices which do not support this check
When doing an inventory on cisco devices which did not support this check, the
check created an error message.
---
.werks/334 | 11 +++++++++++
ChangeLog | 1 +
checks/cisco_fantray | 2 +-
3 files changed, 13 insertions(+), 1 deletion(-)
diff --git a/.werks/334 b/.werks/334
new file mode 100644
index 0000000..09bda47
--- /dev/null
+++ b/.werks/334
@@ -0,0 +1,11 @@
+Title: cisco_fantray: Fixed error on Cisco devices which do not support this check
+Level: 1
+Component: checks
+Class: fix
+State: unknown
+Version: 1.2.5i1
+Date: 1387196790
+Targetversion: future
+
+When doing an inventory on cisco devices which did not support this check, the
+check created an error message.
diff --git a/ChangeLog b/ChangeLog
index 62a1ab9..1a990a3 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -24,6 +24,7 @@
* 0243 FIX: cisco_qos: no longer crashes when the qos policy name is not set...
* 0326 FIX: hr_fs printer_supply: Improved translation of wrong encoded chars...
* 0059 FIX: agent_vpshere: new option for supporting ESX 4.1...
+ * 0334 FIX: cisco_fantray: Fixed error on Cisco devices which do not support this
check...
Multisite:
* 0302 FIX: Fixed highlight of choosen elements in foldertee/views snapin in
Chrome/IE
diff --git a/checks/cisco_fantray b/checks/cisco_fantray
index 3a5f5eb..65a1e36 100644
--- a/checks/cisco_fantray
+++ b/checks/cisco_fantray
@@ -27,7 +27,7 @@
cisco_fan_states = ('', 'unknown', 'up', 'down',
'warning')
def inventory_cisco_fantray(info):
- if info[0]:
+ if info and info[0]:
return [ (line[0], None) for line in info ]
def check_cisco_fantray(item, params, info):