keepalived02:监控节点资源

原创
2013/04/03 14:18
阅读数 67
! Configuration File for keepalived

global_defs {
   notification_email {
        oscersong007@gmail.com
   }
   notification_email_from keepalived@localhost
   smtp_server 127.0.0.1
   smtp_connect_timeout 30
   router_id LVS_DEVEL
}
vrrp_sync_group VGM {
	group {
         VI_1
    }
}
vrrp_script chk_http_port {
	script "killall -0 httpd"
        interval 1
}
vrrp_instance VI_1 {
    state MASTER
    interface eth0
    virtual_router_id 51
    priority 100
    advert_int 1
    authentication {
        auth_type PASS
        auth_pass westos
    }
    track_interface {
		eth0
                eth1
    }
    virtual_ipaddress {
		192.168.0.150/24 dev eth0
                10.0.0.150/24 dev eth1
    }
    track_script {
	chk_http_port
}
}

展开阅读全文
加载中
点击引领话题📣 发布并加入讨论🔥
打赏
0 评论
1 收藏
0
分享
返回顶部
顶部