diff --git a/healthcheck/healthcheck.py b/healthcheck/healthcheck.py index 5573720..dd2d2f2 100755 --- a/healthcheck/healthcheck.py +++ b/healthcheck/healthcheck.py @@ -112,7 +112,7 @@ class Main: self.executeAlarmCommand(s, error) elif status.getAlarmTriggeredTimestamp(section) is not None: logging.info('Alarm ceased for {}: OK!'.format(section)) - if s.notify_alarm_end: + if s.notify_alarm_end and not dryRun and s.mailto: self.sendAlmEndMail(s) status.unsetAlarm(section)