keepalived配置
! Configuration File for keepalived
global_defs {
notification_email {
acassen@firewall.loc
failover@firewall.loc
sysadmin@firewall.loc
}
notification_email_from Alexandre.Cassen@firewall.loc
smtp_server 192.168.200.1
smtp_connect_timeout 30
router_id LVS_DEVEL
}
vrrp_instance VI_1 {
state BACKUP
interface eth0
virtual_router_id 51
priority 99
advert_int 1
authentication {
auth_type PASS
auth_pass 1111
}
virtual_ipaddress {
192.168.1.210 !VIP
}
notify_master "/root/bin/mgmt.sh hotback_type_notice 1"
notify_backup "/root/bin/mgmt.sh hotback_type_notice 2"
notify_fault "/root/bin/mgmt.sh hotback_type_notice 3"
}