keepalived.confのサンプル

! Configuration File for keepalived

global_defs {
   notification_email {
     test@corp-ltd.jp
   }
   notification_email_from error_reporting@corp-ltd.jp
   smtp_server localhost
   smtp_connect_timeout 30
}

vrrp_instance WEB {
    state BACKUP
    interface eth0
    garp_master_delay 5
    virtual_router_id 1
    priority 100
    nopreempt
    advert_int 1
    authentication {
        auth_type PASS
        auth_pass 1111
    }
    virtual_ipaddress {
        192.168.80.250/24   dev eth0
        192.168.95.251/24   dev eth1
    }
    notify_master "/etc/keepalived/check.sh"
}