Module: check_mk
Branch: master
Commit: dc4dd2e3a27a7cc6e5c808abb24575b8c5805ab6
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=dc4dd2e3a27a7c…
Author: Marcel Arentz <ma(a)mathias-kettner.de>
Date: Thu Apr 20 15:11:14 2017 +0200
4624 FIX postfix_mailq: Now takes correct parameters if checking the length of queues
Previously the parameters of deferred mail queue has been used for all kind
of mail queues.
Change-Id: I296a95a777e42a4cd64046a7f1f81d91e6e4e438
---
.werks/4624 | 11 +++++++++++
checks/postfix_mailq | 2 +-
2 files changed, 12 insertions(+), 1 deletion(-)
diff --git a/.werks/4624 b/.werks/4624
new file mode 100644
index 0000000..cb822be
--- /dev/null
+++ b/.werks/4624
@@ -0,0 +1,11 @@
+Title: postfix_mailq: Now takes correct parameters if checking the length of queues
+Level: 1
+Component: checks
+Compatible: compat
+Edition: cre
+Version: 1.5.0i1
+Date: 1492693544
+Class: fix
+
+Previously the parameters of deferred mail queue has been used for all kind
+of mail queues.
diff --git a/checks/postfix_mailq b/checks/postfix_mailq
index b6672c5..99213a4 100644
--- a/checks/postfix_mailq
+++ b/checks/postfix_mailq
@@ -153,7 +153,7 @@ def check_postfix_mailq(item, params, parsed):
params = { "deferred" : params }
for what, size, length in parsed[item]:
- warn, crit = params.get("deferred", (None, None))
+ warn, crit = params.get(what, (None, None))
if what in [ "active", "deferred", "mail" ]:
state = 0
infotext = "%s%s queue length: %d" % (what[0].upper(), what[1:],
length)