Module: check_mk
Branch: master
Commit: 6103146e109e1b13e1f5287a3c59bca0257cb58b
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=6103146e109e1b…
Author: Simon Betz <si(a)mathias-kettner.de>
Date: Tue Nov 10 16:39:32 2015 +0100
#2702 FIX oracle_diva_csm: fixed handling of empty sublists
---
.werks/2702 | 9 +++++++++
ChangeLog | 1 +
checks/oracle_diva_csm | 6 ++++--
3 files changed, 14 insertions(+), 2 deletions(-)
diff --git a/.werks/2702 b/.werks/2702
new file mode 100644
index 0000000..bd791ea
--- /dev/null
+++ b/.werks/2702
@@ -0,0 +1,9 @@
+Title: oracle_diva_csm: fixed handling of empty sublists
+Level: 1
+Component: checks
+Compatible: compat
+Version: 1.2.7i4
+Date: 1447169914
+Class: fix
+
+
diff --git a/ChangeLog b/ChangeLog
index 515645a..fe911f9 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -64,6 +64,7 @@
* 2783 FIX: esx_vsphere_datastores: fixed crash when no provisioning levels were set
* 2700 FIX: ibm_svc_node: fixed handling with agent output after firmware update
* 2701 FIX: zfsget: fixed handling in case of zero total size based on buggy 'df
-h' command on some solaris systems...
+ * 2702 FIX: oracle_diva_csm: fixed handling of empty sublists
Multisite:
* 2684 Added icons for downloading agent data / walks of hosts...
diff --git a/checks/oracle_diva_csm b/checks/oracle_diva_csm
index bb73d4e..db65427 100644
--- a/checks/oracle_diva_csm
+++ b/checks/oracle_diva_csm
@@ -141,7 +141,8 @@ check_info['oracle_diva_csm.archive'] = {
def inventory_oracle_diva_csm_objects(info):
- yield None, None
+ if len(info) > 4 and len(info[4]) > 0:
+ yield None, None
def check_oracle_diva_csm_objects(item, params, info):
@@ -179,7 +180,8 @@ oracle_diva_csm_tapes_default_levels = (5, 1) # number of
remaining blank
def inventory_oracle_diva_csm_tapes(info):
- yield None, 'oracle_diva_csm_tapes_default_levels'
+ if len(info) > 5 and len(info[5]) > 0 and len(info[5][0]) > 0:
+ yield None, 'oracle_diva_csm_tapes_default_levels'
def check_oracle_diva_csm_tapes(item, params, info):