diff --git a/check_cups b/check_cups index b6500a5cfd0f199dd4fb891c97bf41255ecf7d65..e4846171f8245a97e7a38b84d138c476d98ab47d 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)