Dear, I created a rule for Netwatch … I put a host to ping and when the host goes offline Mikrotik does not execute the script … by Netwatch … being that when I go there in System >> Scripts and I execute it It works normally … Can someone tell me where the error is?
Follow the rules below :
/tool netwatch
add down-script=removerip host=192.168.5.2 interval=30s up-script=adicionar
/system script
add name=adicionar owner=david policy=
ftp,reboot,read,write,policy,test,password,sniff,sensitiv
address { add address="192.168.5.1/24" interface=<pptp-
"
add name=removerip owner=david policy=
ftp,reboot,read,write,policy,test,password,sniff,sensitiv
“ip address remove [find address="192.168.5.1/24"]”
thank you