1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56
| global_defs { notification_email { xxx@xxx.xxx } notification_email_from xxx@xxx.xxx smtp_server 127.0.0.1 smtp_connect_timeout 30 router_id LVS_DEVEL }
vrrp_script check_nginx_alive { script "/etc/keepalived/check_nginx.sh" interval 3 weight -10 }
vrrp_instance VI_1 { state MASTER interface ens32 mcast_src_ip 10.4.7.101 virtual_router_id 51 priority 100 advert_int 1 authentication { auth_type PASS auth_pass 1643 } virtual_ipaddress { 10.4.7.100 } track_script { check_nginx_alive } }
|