Hi,
This series adds a new option which allows configuration of the maximum
log level of messages for which email alerts will be sent.
The default is alert which is more restrictive than
the current code which sends email alerts for all priorities.
That behaviour may be configured using the new configuration
option to set the maximum level to notice or greater.
email-alert level notice
The first patch in the series provides a contextual dependency
of the second patch.
Simon Horman (2):
LOW: Remove trailing '.' from email alert messages
MEDIUM: Allow suppression of email alerts by log level
doc/configuration.txt | 36 ++++++++++++++++++++++++++++++------
include/proto/checks.h | 4 ++--
include/types/proxy.h | 3 +++
src/cfgparse.c | 20 +++++++++++++++++---
src/checks.c | 7 ++++---
src/server.c | 6 ++++--
6 files changed, 60 insertions(+), 16 deletions(-)
--
2.1.4