From 0b59895ba9e22923a4b5eea2a314fe2d31b42b78 Mon Sep 17 00:00:00 2001 From: Linus Nordberg Date: Fri, 15 May 2015 11:48:42 +0200 Subject: Say "UTC" when printing dates. --- tools/check-sth.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tools/check-sth.py') diff --git a/tools/check-sth.py b/tools/check-sth.py index 708a438..da52575 100755 --- a/tools/check-sth.py +++ b/tools/check-sth.py @@ -69,11 +69,11 @@ def check_age(sth): now = datetime.now(UTC()) sth_time = datetime.fromtimestamp(sth['timestamp'] / 1000, UTC()) if now > sth_time + timedelta(0, 6 * 3600): - print "CRITICAL: %s is older than 6h: %s" % \ + print "CRITICAL: %s is older than 6h: %s UTC" % \ (sth['sha256_root_hash'], sth_time) sys.exit(NAGIOS_CRIT) if now > sth_time + timedelta(0, 2 * 3600): - print "WARNING: %s is older than 2h: %s" % \ + print "WARNING: %s is older than 2h: %s UTC" % \ (sth['sha256_root_hash'], sth_time) sys.exit(NAGIOS_WARN) -- cgit v1.1