From d1a2f978fb626c904fb1278c792d992ec4563acf Mon Sep 17 00:00:00 2001 From: Josef Gustafsson Date: Fri, 4 Sep 2015 12:18:19 +0200 Subject: stripping away everything except what is necessary for nagios --- tools/josef_nagios_auditor.py | 11 ----------- 1 file changed, 11 deletions(-) (limited to 'tools/josef_nagios_auditor.py') diff --git a/tools/josef_nagios_auditor.py b/tools/josef_nagios_auditor.py index db68bbe..74d9256 100755 --- a/tools/josef_nagios_auditor.py +++ b/tools/josef_nagios_auditor.py @@ -22,10 +22,6 @@ parser.add_argument('--sthfile', required=True, metavar='file', help="File containing current STH") -# parser.add_argument('--keyfile', -# metavar='file', -# required=True, -# help="File containing current STH") class UTC(datetime.tzinfo): def utcoffset(self, dt): @@ -78,8 +74,6 @@ def get_and_verify_sth(url): # Check signature on the STH try: check_sth_signature(url, sth, None) - # check_sth_signature(url, sth, key) - # write_file("plausible-sth.json", tmp_sth) except: error_str = time.strftime('%H:%M:%S') + " ERROR: Could not verify signature from " + url print error_str @@ -302,11 +296,6 @@ def write_file(fn, sth): def main(args): - # try: - # log_key = get_public_key_from_file(args.keyfile) - # except: - # print time.strftime('%H:%M:%S') + " ERROR: Failed to load keyfile " + args.keyfile - # sys.exit(NAGIOS_WARN) old_sth = read_sth(args.sthfile) new_sth = get_and_verify_sth(args.baseurl) -- cgit v1.1