Module: check_mk
Branch: master
Commit: 88d1e5d9be6546ec7709bbf87cb8dfafb4e0ca25
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=88d1e5d9be6546…
Author: Bastian Kuhn <bk(a)mathias-kettner.de>
Date: Tue Jul 1 14:25:39 2014 +0200
FIX hitachi_hnas_volume: Fixed bug when snmp outputs empty lines
---
.werks/173 | 9 +++++++++
ChangeLog | 1 +
checks/hitachi_hnas_volume | 2 ++
3 files changed, 12 insertions(+)
diff --git a/.werks/173 b/.werks/173
new file mode 100644
index 0000000..349768d
--- /dev/null
+++ b/.werks/173
@@ -0,0 +1,9 @@
+Title: hitachi_hnas_volume: Fixed bug when snmp outputs empty lines
+Level: 1
+Component: checks
+Class: fix
+State: unknown
+Version: 1.2.5i5
+Date: 1404217488
+
+
diff --git a/ChangeLog b/ChangeLog
index dcc47cf..b136ceb 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -18,6 +18,7 @@
* 1032 FIX: check_traceroute: Fix option Use DNS, worked vice versa
* 0171 FIX: hp_blade_psu: Fixed pnp template...
* 0996 FIX: apc_symmetra_test: Handle unknown date of last self test as intended...
+ * 0173 FIX: hitachi_hnas_volume: Fixed bug when snmp outputs empty lines
Multisite:
* 1013 Sort host names naturally, e.g. foobar11 comes after foobar2...
diff --git a/checks/hitachi_hnas_volume b/checks/hitachi_hnas_volume
index cf26fc5..3852708 100644
--- a/checks/hitachi_hnas_volume
+++ b/checks/hitachi_hnas_volume
@@ -36,6 +36,8 @@ def check_hitachi_hnas_volume(item, params, info):
# use checks from df.include
fslist = []
for id, label, volume_status, total, free, evs in info:
+ if id = '':
+ continue
if id + " " + label == item:
size_mb = int(total) / 1048576.0
avail_mb = int(free) / 1048576.0