Module: check_mk
Branch: master
Commit: 3ffaecd934c133c88f2c10663382fb06799bbc97
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=3ffaecd934c133…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Wed Feb 20 15:25:51 2013 +0100
FIX: multipath: ignore warning messages in agent due to invalid multipath.conf
---
ChangeLog | 1 +
checks/multipath | 4 ++++
2 files changed, 5 insertions(+), 0 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index b7c1632..1d0445c 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -37,6 +37,7 @@
* Linux agent: limit netstat to 10 seconds
* ps: Allow %1, %2, .. instead of %s in process_inventory. That allows
reordering of matched groups
+ * FIX: multipath: ignore warning messages in agent due to invalid multipath.conf
Multisite:
* FIX: Fixed problem with error during localization scanning
diff --git a/checks/multipath b/checks/multipath
index c95514d..4ae6cdd 100644
--- a/checks/multipath
+++ b/checks/multipath
@@ -156,6 +156,10 @@ def parse_multipath_output(info, only_uuid = None):
group = {}
numpaths = None
for line in info:
+ # Ignore error messages due to invalid multipath.conf
+ if line[0] == "multipath.conf":
+ continue
+
# newer agent also output the device mapper table.
# ignore those lines for now.
if line[0] == "dm":