---请删除这个问题,因为我的公司因限制而给我警告---
如 keepalived.conf 手册页所述,它寻找
a script to be executed periodically
.
VRRP script(s)
# Adds a script to be executed periodically. Its exit code will be
# recorded for all VRRP instances which are monitoring it.
vrrp_script <SCRIPT_NAME> {
script <STRING>|<QUOTED-STRING> # path of the script to execute
所以这应该可以解决问题:
chk_nebula.sh
。
cat /chk_nebula.sh
#!/bin/bash
/bin/ping -c 1 172.20.128.100 &> /dev/null
chmod +x /chk_nebula.sh
script
参数使用以下值。script "/chk_nebula.sh"