Skip to content

Instantly share code, notes, and snippets.

vrrp_script chk_haproxy {
script "killall -0 haproxy" # verify the pid existance. `killall -0 haproxy` or `pidof haproxy`
interval 2 # check every 2 seconds
weight 2 # add 2 points of prio if OK
}
vrrp_instance VI_1 {
interface eth0 # interface to monitor
state MASTER
virtual_router_id 51 # Assign one ID for this route