Created
October 3, 2013 14:59
-
-
Save welbymcroberts/6811242 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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