Module: check_mk
Branch: master
Commit: d1fa20f453aba9fda19084fe507349e5edfd33e0
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=d1fa20f453aba9…
Author: Goetz Golla <gg(a)mathias-kettner.de>
Date: Thu Oct 2 16:17:39 2014 +0200
diskstat: fix for detecting lvm volumes, was broken due to new cluster feature
---
checks/diskstat | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/checks/diskstat b/checks/diskstat
index 982e5d4..93ebb88 100644
--- a/checks/diskstat
+++ b/checks/diskstat
@@ -97,7 +97,7 @@ def diskstat_parse_info(info):
elif phase == 'dmsetup_info':
try:
majmin = tuple(map(int, line[2].split(':')))
- if len(line) == 4:
+ if len(line) == 5:
name = "LVM %s" % line[1]
else:
name = "DM %s" % line[1]