vrrp_script track_npm { script "/etc/keepalived/check_docker_container.sh " interval 5 fall 1 rise 30 } vrrp_instance NPM-V1 { state BACKUP interface virtual_router_id 10 priority 95 advert_int 1 unicast_src_ip unicast_peer { } authentication { auth_type PASS auth_pass } virtual_ipaddress { / dev } track_script { track_npm } notify_master "/etc/keepalived/add_route.sh" notify_backup "/etc/keepalived/rm_route.sh" notify_fault "/etc/keepalived/rm_route.sh" }