Module: check_mk
Branch: master
Commit: c7d1027fab03f5896d3287219a8b5abd936701c6
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=c7d1027fab03f5…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Sun Sep 29 19:47:58 2013 +0200
ps: fixed inventory with optional subgroups
Like (mysql)?, where the group migh be None
---
checks/ps | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/checks/ps b/checks/ps
index 17f00f2..150e935 100644
--- a/checks/ps
+++ b/checks/ps
@@ -261,7 +261,7 @@ def process_matches(ps, procname, l_user):
compiled_regexes[pattern] = reg
matchobject = reg.match(" ".join(ps))
if matchobject:
- return matchobject.groups()
+ return [ g and g or "" for g in matchobject.groups() ]
return False
# New parameter format: dictionary. Example: