Netwatch & Supla

HOST DOWN

:if ([/ping 10.10.10.12 count=5] = 0) do={
/tool fetch url="https://svr31.supla.org/direct/35/XXX/turn-off" keep-result=no
 } 

HOST UP

/tool fetch url="https://svr31.supla.org/direct/35/XXXX/turn-on" keep-result=no