keepalived02:監控節點資源
01
! Configuration File for keepalived
02
03
global_defs {
04
notification_email {
05
[email protected]
06
}
07
notification_email_from keepalived@localhost
08
smtp_server 127.0.0.1
09
smtp_connect_timeout 30
10
router_id LVS_DEVEL
11
}
12
vrrp_sync_group VGM {
13
group {
14
VI_1
15
}
16
}
17
vrrp_script chk_http_port {
18
script "killall -0 httpd"
19
interval 1
20
}
21
vrrp_instance VI_1 {
22
state MASTER
23
interface eth0
24
virtual_router_id 51
25
priority 100
26
advert_int 1
27
authentication {
28
auth_type PASS
29
auth_pass westos
30
}
31
track_interface {
32
eth0
33
eth1
34
}
35
virtual_ipaddress {
36
192.168.0.150/24 dev eth0
37
10.0.0.150/24 dev eth1
38
}
39
track_script {
40
chk_http_port
41
}
42
}