Module: check_mk
Branch: master
Commit: 6cd6c1521974048ed3aed75d43ca6a8040e11cfa
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=6cd6c152197404…
Author: Sebastian Herbord <sh(a)mathias-kettner.de>
Date: Mon Jun 20 13:31:21 2016 +0200
updated mknotifyd-check to work with new mknotifyd output
---
checks/mknotifyd | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/checks/mknotifyd b/checks/mknotifyd
index 305c67e..3e06950 100644
--- a/checks/mknotifyd
+++ b/checks/mknotifyd
@@ -63,12 +63,14 @@ def parse_mknotifyd(info):
site_entry = {
"spools" : {},
"connections" : {},
+ "queues" : {}
}
sub_entry = site_entry
parsed[site] = site_entry
else:
varname, value = line[0].split(":", 1)
value = value.strip()
+
if varname == "Spool":
sub_entry = {}
site_entry["spools"][value] = sub_entry
@@ -77,6 +79,10 @@ def parse_mknotifyd(info):
sub_entry = {}
site_entry["connections"][value] = sub_entry
+ elif varname == "Queue":
+ sub_entry = {}
+ site_entry["queues"][value] = sub_entry
+
else:
if value == "None":
value = None