Skip to content

Instantly share code, notes, and snippets.

@welbymcroberts
Created October 3, 2013 14:59
Show Gist options
  • Save welbymcroberts/6811242 to your computer and use it in GitHub Desktop.
Save welbymcroberts/6811242 to your computer and use it in GitHub Desktop.
global_defs {
notification_email {
notify@email
}
notification_email_from whatever@3email
}
vrrp_script chk_haproxy {
script "killall -0 haproxy" # verify the pid existance
interval 2 # check every 2 seconds
weight 2 # add 2 points of prio if OK
}
vrrp_instance VI_1 {
state MASTER
interface eth2
priority 100
advert_int 1
virtual_router_id 1
authentication {
auth_type PASS
auth_pass 1234
}
virtual_ipaddress {
1.2.3.4
}
track_script {
check_haproxy
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment