check host hub.example.tld with address HUBIP alert EMAILADDRESS if failed icmp type echo count 3 with timeout 1 seconds for 4 cycles then exec "/bin/bash -c /root/cf/cfkillhub.sh" else if succeeded for 20 cycles then exec "/bin/bash -c /root/cf/cfhub.sh" if failed url http://HUBIP:PORT with timeout 2 seconds and retry 3 for 15 cycles then exec "/bin/bash -c /root/cf/cfkillhub.sh" else if succeeded for 20 cycles then exec "/bin/bash -c /root/cf/cfhub.sh" check host spoke1.example.tld with address SPOKE1IP alert EMAILADDRESS if failed icmp type echo count 3 with timeout 1 seconds for 4 cycles then exec "/bin/bash -c /root/cf/cfkillspoke1.sh" else if succeeded for 20 cycles then exec "/bin/bash -c /root/cf/cfspoke1.sh" if failed url http://SPOKE1IP:PORT with timeout 2 seconds and retry 3 for 15 cycles then exec "/bin/bash -c /root/cf/cfkillspoke1.sh" else if succeeded for 20 cycles then exec "/bin/bash -c /root/cf/cfspoke1.sh" check host spoke2.example.tld with address SPOKE2IP alert EMAILADDRESS if failed icmp type echo count 3 with timeout 1 seconds for 4 cycles then exec "/bin/bash -c /root/cf/cfkillspoke2.sh" else if succeeded for 20 cycles then exec "/bin/bash -c /root/cf/cfspoke2.sh" if failed url http://SPOKE2IP:PORT with timeout 2 seconds and retry 3 for 15 cycles then exec "/bin/bash -c /root/cf/cfkillspoke2.sh" else if succeeded for 20 cycles then exec "/bin/bash -c /root/cf/cfspoke2.sh"