Module: check_mk
Branch: master
Commit: 2c5619034c63d3a769e294fc654fbbf16dde55a3
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=2c5619034c63d3…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Thu Dec 3 09:55:26 2015 +0100
Added note about the parse_ps resulting format
---
checks/ps | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/checks/ps b/checks/ps
index e7bb97d..78da52d 100644
--- a/checks/ps
+++ b/checks/ps
@@ -177,6 +177,13 @@ def ps_parse_process_entries(parsed):
return parsed
+# Produces a list of lists where each sub list is built as follows:
+# [
+# [None, (u'root', u'35156', u'4372',
u'00:00:05/2-14:14:49', u'1'), u'/sbin/init'],
+# ]
+# First element: The node the data comes from in a cluster or None
+# Second element: The process info tuple (see ps.include: check_ps_common() for details
on the elements)
+# Third element: The process command line
def parse_ps(info):
cpu_cores, parsed = ps_merge_wmic_info(info)