From 6371a93650e74d6d4518890230eeeb5ffa7b660e Mon Sep 17 00:00:00 2001 From: Tom Ritter Date: Mon, 3 Apr 2017 01:18:29 -0400 Subject: Add 5 and 10 minute intervals and fix bwauth last scanner check --- samplejobs/BWAuthChecker.py | 1 + 1 file changed, 1 insertion(+) (limited to 'samplejobs/BWAuthChecker.py') diff --git a/samplejobs/BWAuthChecker.py b/samplejobs/BWAuthChecker.py index ee0113a..618075e 100755 --- a/samplejobs/BWAuthChecker.py +++ b/samplejobs/BWAuthChecker.py @@ -74,6 +74,7 @@ class BWAuthChecker(JobBase.JobBase): elif l.strip(): last_measured = re.match("NOTICE\[[^\s]+ ([0-9a-zA-Z: ]+)\]", l).groups(0)[0] last_measured = datetime.datetime.strptime(last_measured, "%b %d %H:%M:%S %Y") + measurement_times[this_scanner] = last_measured for t in measurement_times: if measurement_times[t] + datetime.timedelta(days=6) < datetime.datetime.now(): -- cgit v1.2.3