Module: check_mk
Branch: master
Commit: f16c8e009dde00f815238c2c6014fc0b1d217da6
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=f16c8e009dde00…
Author: Konstantin Büttner <kb(a)mathias-kettner.de>
Date: Mon Jun 8 13:56:21 2015 +0200
md: Converted expected and actual number of disks to int
---
checks/md | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/checks/md b/checks/md
index c64313d..83e9ae7 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