From 3e85f1d0d48f0fb65a83af6ce3fb4b6a08f0bb1a Mon Sep 17 00:00:00 2001 From: Tom Date: Wed, 28 Dec 2016 13:59:43 -0600 Subject: Create an option that lets you require two failures before alerting. --- jobs/PeerChecker.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'jobs/PeerChecker.py') diff --git a/jobs/PeerChecker.py b/jobs/PeerChecker.py index 1214b0f..7832b25 100755 --- a/jobs/PeerChecker.py +++ b/jobs/PeerChecker.py @@ -23,6 +23,8 @@ class PeerChecker(JobSpawner.JobSpawner): return JobBase.JobFrequency.HOUR def notifyOnFailureEvery(self): return JobBase.JobFailureNotificationFrequency.EVERYTIME + def numberFailuresBeforeNotification(self): + return JobBase.JobFailureCountMinimumBeforeNotification.ONE def execute(self): peerOK = False -- cgit v1.2.3