diff options
author | Linus Nordberg <linus@nordberg.se> | 2015-05-15 11:48:42 +0200 |
---|---|---|
committer | Linus Nordberg <linus@nordberg.se> | 2015-05-15 11:48:42 +0200 |
commit | 0b59895ba9e22923a4b5eea2a314fe2d31b42b78 (patch) | |
tree | 4bff4df5c87e844b0523f8452288e952a62a1dd3 /tools/check-sth.py | |
parent | 9e1eda1ab1b0e8dc8db71502fd1f12c45708b9e6 (diff) |
Say "UTC" when printing dates.
Diffstat (limited to 'tools/check-sth.py')
-rwxr-xr-x | tools/check-sth.py | 4 |
1 files changed, 2 insertions, 2 deletions
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) |