Module: check_mk
Branch: master
Commit: 2d959ff23a15074d774db9dee9bb4d924b877a09
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=2d959ff23a1507…
Author: Konstantin Büttner <kb(a)mathias-kettner.de>
Date: Mon Jun 8 15:18:18 2015 +0200
#2217 FIX md: Fix handling of found and expected disks
---
.werks/2217 | 9 +++++++++
ChangeLog | 1 +
checks/md | 2 +-
3 files changed, 11 insertions(+), 1 deletion(-)
diff --git a/.werks/2217 b/.werks/2217
new file mode 100644
index 0000000..b96e204
--- /dev/null
+++ b/.werks/2217
@@ -0,0 +1,9 @@
+Title: md: Fix handling of found and expected disks
+Level: 1
+Component: checks
+Class: fix
+Compatible: compat
+State: unknown
+Version: 1.2.7i2
+Date: 1433769443
+
diff --git a/ChangeLog b/ChangeLog
index 0c21634..9b49e30 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -11,6 +11,7 @@
* 2305 FIX: agent_vsphere, esx_vsphere_sensors: now able to handle sensor names with
semicolon...
* 2118 FIX: aix_sap_processlist: agent plugin now is more general to deal with
various AIX versions...
* 1253 FIX: printer_io,printer_supply: prevent discovery on not supported devices
+ * 2217 FIX: md: Fix handling of found and expected disks
Multisite:
* 2260 Improved load time of Check_MK GUI...
diff --git a/checks/md b/checks/md
index c64313d..505941e 100644
--- a/checks/md
+++ b/checks/md
@@ -127,7 +127,7 @@ def check_md(item, _no_params, info):
its_next = True
elif its_next:
disk_state_1 = line[-2]
- (num_disks, expected_disks) = disk_state_1[1:-1].split('/')
+ (num_disks, expected_disks) = map(int,disk_state_1[1:-1].split('/'))
disk_state_2 = line[-1]
working_disks = disk_state_2.count('U')
state_next = True