0b4db120c8
Ein Bug wurde gefixt und eine Benachrichtigung beim service Stop hinzugefügt
36 lines
664 B
Plaintext
36 lines
664 B
Plaintext
vrrp_script chk_pihole {
|
|
script "/usr/local/bin/check_pihole.sh"
|
|
interval 2
|
|
weight -30
|
|
fall 2
|
|
rise 2
|
|
}
|
|
|
|
vrrp_instance VI_PIHole {
|
|
|
|
state MASTER
|
|
#state BACKUP
|
|
interface eth0
|
|
virtual_router_id 51
|
|
priority 200
|
|
#priority 100
|
|
advert_int 1
|
|
|
|
authentication {
|
|
auth_type PASS
|
|
auth_pass CHANGE_ME_SECURE
|
|
}
|
|
|
|
virtual_ipaddress {
|
|
192.168.178.10
|
|
}
|
|
|
|
track_script {
|
|
chk_pihole
|
|
}
|
|
|
|
notify_master "/usr/local/bin/failover.sh MASTER"
|
|
notify_backup "/usr/local/bin/failover.sh BACKUP"
|
|
notify_fault "/usr/local/bin/failover.sh FAULT"
|
|
notify_stop "/usr/local/bin/failover.sh STOP"
|
|
} |