如果 ping 失败,如何运行命令?

问题描述

大家好,我正在尝试使用 monit 进行 CloudFlaire IP 故障转移

实际上我正在使用它,但不幸的是,当 monit 运行时,这个字符串看起来不起作用,我这边有什么错误吗?

check host x.x.x.x with address x.x.x.x
  if Failed icmp type echo count 3 with timeout 3 seconds for 2 cycles then exec "/bin/bash -c /etc/monit/SecondaryIP.sh"
  else if succeeded for 2 cycles then exec "/bin/bash -c /etc/monit/NativeIP.sh"

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)