Module: check_mk
Branch: master
Commit: 08d8e8f89a972cb6b812b23b134b9f2747fdaea3
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=08d8e8f89a972c…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Wed Nov 5 14:41:39 2014 +0100
Minor code cleanup in multipath check
---
checks/multipath | 9 +--------
1 file changed, 1 insertion(+), 8 deletions(-)
diff --git a/checks/multipath b/checks/multipath
index f023972..667042a 100644
--- a/checks/multipath
+++ b/checks/multipath
@@ -139,9 +139,7 @@ inventory_multipath_rules = []
# Nov 05 17:17:03 | You can run /sbin/mpathconf to create or modify /etc/multipath.conf
# Nov 05 17:17:03 | DM multipath kernel driver not loaded
-def parse_multipath(info, only_uuid = None):
- # only_uuid --> look only for data of this uuid or alias
-
+def parse_multipath(info):
# New reported header lines need to be placed here
# the matches need to be put in a list of tupples
# while the structure of the tupple is:
@@ -208,11 +206,6 @@ def parse_multipath(info, only_uuid = None):
if not matchobject:
raise Exception("Invalid line in agent output: " + l)
- # Skip unwanted devices in one device mode
- if only_uuid and only_uuid not in [ uuid, alias ]:
- uuid = None # wrong uuid, ignore this one
- continue
-
# initialize information about next device
numpaths = 0
lun_info = []