Module: check_mk
Branch: master
Commit: 46dc3f3932d66355acdf14a0ad8947b5313139be
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=46dc3f3932d663…
Author: Simon Betz <si(a)mathias-kettner.de>
Date: Fri May 18 13:35:12 2018 +0200
6087 FIX cups_queues: Fixed missing parameters if old format is used
Change-Id: Idcdc445cc25f8253567fed413221928674430b23
---
.werks/6087 | 11 +++++++++++
checks/cups_queues | 7 +++++--
2 files changed, 16 insertions(+), 2 deletions(-)
diff --git a/.werks/6087 b/.werks/6087
new file mode 100644
index 0000000..1caa556
--- /dev/null
+++ b/.werks/6087
@@ -0,0 +1,11 @@
+Title: cups_queues: Fixed missing parameters if old format is used
+Level: 1
+Component: checks
+Class: fix
+Compatible: compat
+Edition: cre
+State: unknown
+Version: 1.6.0i1
+Date: 1526643172
+
+
diff --git a/checks/cups_queues b/checks/cups_queues
index 7d0fbfe..ea8559a 100644
--- a/checks/cups_queues
+++ b/checks/cups_queues
@@ -99,8 +99,11 @@ def check_cups_queues(item, params, parsed):
if item in parsed:
data = parsed[item]
if type(params) == tuple and len(params) == 4:
- params = {"job_count" : (params[0], params[1]),
- "job_age" : (params[2], params[3]),
+ params = {"job_count" : (params[0], params[1]),
+ "job_age" : (params[2], params[3]),
+ 'is_idle' : 0,
+ 'now_printing' : 0,
+ 'disabled_since' : 2,
}
if data["status_readable"] in params: