summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorJosef Gustafsson <josef.gson@gmail.com>2015-09-28 11:51:57 +0200
committerJosef Gustafsson <josef.gson@gmail.com>2015-09-28 11:51:57 +0200
commitdf4d69358f7ec6115d835cabe47e749aa04ba6ff (patch)
treeb1742ddb912cde2d4176f3ba3311318a4839ba4d /tools
parent90b3ea06bf21659a9b7cfb8f72cbbc7b22d7367d (diff)
enabling mixed auditing/monitoring. changing timespamp format
Diffstat (limited to 'tools')
-rwxr-xr-xtools/josef_auditor.py14
1 files changed, 6 insertions, 8 deletions
diff --git a/tools/josef_auditor.py b/tools/josef_auditor.py
index 44eb5f8..d612a83 100755
--- a/tools/josef_auditor.py
+++ b/tools/josef_auditor.py
@@ -110,7 +110,7 @@ def fetch_all_sth():
return sths
def verify_progress(old, new):
- print "Verifying progress"
+ # print "Verifying progress"
try:
for url in new:
if new and old and new[url] and old[url]:
@@ -361,7 +361,8 @@ def main(args):
time.sleep(30)
new_sth = fetch_all_sth()
verify_consistency(sth, new_sth)
- verify_inclusion_all(sth, new_sth)
+ # verify_inclusion_all(sth, new_sth)
+ verify_progress(sth, new_sth)
sth = new_sth
if args.audit2:
@@ -402,7 +403,7 @@ def main(args):
if __name__ == '__main__':
- # try:
+ try:
main(parser.parse_args())
if len(errors) == 0:
print time.strftime('%H:%M:%S') + " Everything OK."
@@ -411,11 +412,8 @@ if __name__ == '__main__':
# print "errors found!"
print_errors(errors)
sys.exit(NAGIOS_WARN)
- # except:
- # pass
- # finally:
- # # print_timings(timings)
- # print_errors(errors)
+ except KeyboardInterrupt:
+ print_errors(errors)