diff --git a/check_syslog b/check_syslog index 2716ce47588a0eb15889d8cf9ff203dfa9fe50ac..971e19eebc58a94de43edff22c5720bb291def2e 100755 --- a/check_syslog +++ b/check_syslog @@ -43,11 +43,11 @@ def check_host(hostname): print "CRITICAL - no activity within the last 14 days" sys.exit(2) age = time.time() - statval.st_mtime - if age > 10 * 3600: - print "WARNING - no activity for %.1g hours" % (age / 3600.0) + if age > 1.5 * 3600: + print "WARNING - no activity for %.1f hours" % (age / 3600.0) sys.exit(1) else: - print "OK - activity %.2g hours ago" % (age / 3600.0) + print "OK - activity %.2f minutes ago" % (age / 60.0) if __name__ == '__main__':