From d97eabdca57b64ad01a6a0fa8d100bbd76f88739 Mon Sep 17 00:00:00 2001 From: Jamie Cameron Date: Wed, 7 Mar 2018 20:39:04 -0800 Subject: [PATCH] On success, clear the last failure time --- status/monitor.pl | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/status/monitor.pl b/status/monitor.pl index 331db50be..4955022af 100755 --- a/status/monitor.pl +++ b/status/monitor.pl @@ -248,6 +248,11 @@ foreach $serv (@services) { # Update old status hash $oldstatus{$serv->{'id'}} = $newstatus_str; + + # If successful, clear the last-sent time + if ($ok == 1) { + delete($lastsent{$serv->{'id'}}); + } } # Close oldstatus, fails and lastsent files