MEDIUM: Send email alerts when servers are marked as UP or enter the drain state
authorSimon Horman <horms@verge.net.au>
Thu, 30 Apr 2015 04:10:34 +0000 (13:10 +0900)
committerWilly Tarreau <w@1wt.eu>
Thu, 30 Apr 2015 05:30:50 +0000 (07:30 +0200)
commit4cd477f3721f6a3fe7cf55ae729388bf7f279331
tree27421a7fde3586dbc49ba3780394d3549929c670
parent7ea9be012d9d76752cfbba6c94b3672601716c4b
MEDIUM: Send email alerts when servers are marked as UP or enter the drain state

This is similar to the way email alerts are sent when servers are marked as
DOWN.

Like the log messages corresponding to these state changes the messages
have log level notice. Thus they are suppressed by the default email-alert
level of 'alert'. To allow these messages the email-alert level should
be set to 'notice', 'info' or 'debug'. e.g:

email-alert level notice

"email-alert mailers" and "email-alert to" settings are also required in
order for any email alerts to be sent.

A follow-up patch will document the above.

Signed-off-by: Simon Horman <horms@verge.net.au>
src/server.c