Module: check_mk
Branch: master
Commit: 6d9ec7b339928fb0ca8bff7e7f2edae4ba0e3cd9
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=6d9ec7b339928f…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Thu Dec 18 09:23:32 2014 +0100
#1771 FIX domino_mailqueues: Fixed exception during inventory when no data usable data
available
---
.werks/1771 | 10 ++++++++++
ChangeLog | 1 +
checks/domino_mailqueues | 7 ++++---
3 files changed, 15 insertions(+), 3 deletions(-)
diff --git a/.werks/1771 b/.werks/1771
new file mode 100644
index 0000000..239e5c9
--- /dev/null
+++ b/.werks/1771
@@ -0,0 +1,10 @@
+Title: domino_mailqueues: Fixed exception during inventory when no data usable data
available
+Level: 1
+Component: checks
+Class: fix
+Compatible: compat
+State: unknown
+Version: 1.2.7i1
+Date: 1418890967
+
+
diff --git a/ChangeLog b/ChangeLog
index e8375f2..5f5e4df 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -24,6 +24,7 @@
* 1768 FIX: brocade_fcport/brocade_info: Only try to discover these services when
device provides correct info...
* 1769 FIX: megaraid_bbu: Fixed exception for some controllers reporting "full
charge capacity"
* 1770 FIX: megaraid_pdisks: Now handling unconfigured good/bad states...
+ * 1771 FIX: domino_mailqueues: Fixed exception during inventory when no data usable
data available
Multisite:
* 1758 Improved exception hander: Shows details without additional debug request,
added mailto link for error report...
diff --git a/checks/domino_mailqueues b/checks/domino_mailqueues
index b098acb..0d41caa 100644
--- a/checks/domino_mailqueues
+++ b/checks/domino_mailqueues
@@ -38,9 +38,10 @@ domino_mailqueues = {
def inventory_domino_mailqueues(info):
for line in info:
- val = int(line[0][0].split(".")[12])
- if val in domino_mailqueues.keys():
- yield domino_mailqueues[val][0], {}
+ if line:
+ val = int(line[0][0].split(".")[12])
+ if val in domino_mailqueues.keys():
+ yield domino_mailqueues[val][0], {}
def check_domino_mailqueues(item, params, info):
for line in info: