Enable email notifications in the keepalived configuration file
- Add the line smtp_alert to the vrrp_instance section of the configuration file:
- vrrp_instance VI_1 state MASTER. interface eth0. virtual_router_id 5. priority 10. advert_int 1. ...
- Restart keepalived to load the configuration changes:
- # service keepalived restart.