From a51fcb3ba890bb3e13a2066f68c1d575b5757d73 Mon Sep 17 00:00:00 2001
From: Per Cederqvist <ceder@lysator.liu.se>
Date: Thu, 9 Mar 2006 10:34:13 +0000
Subject: [PATCH] Increase the acceptable CUPS queue times

---
 check_cups | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/check_cups b/check_cups
index b6500a5..e484617 100755
--- a/check_cups
+++ b/check_cups
@@ -26,11 +26,11 @@ def check_queue(queue):
 	    worst_age = age
 	    worst_user = who
 
-    if worst_age > 300:
+    if worst_age > 120 * 60:
 	print "CRITICAL - %d jobs, %.1f minutes, oldest %s" % (
 	    ctr, worst_age/60, worst_user)
 	sys.exit(2)
-    elif worst_age > 60:
+    elif worst_age > 15 * 60:
 	print "WARNING - %d jobs, %.1f minutes, oldest %s" % (
 	    ctr, worst_age/60, worst_user)
 	sys.exit(1)
-- 
GitLab