Script via Netwatch Don't Running

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

The script is executed but it does not have the permissions that you have set.
For example put this in your script:
/log warning message=“192.168.5.2 is down”
and you will see that it executes because it puts that message in the log.

http://forum.mikrotik.com/t/v6-42-current/118561/1

What’s new in 6.42 (2018-Apr-13 11:03):

*) netwatch - limit to read, write, test and reboot policies for Netwatch script execution;

http://forum.mikrotik.com/t/read-before-creating-yet-another-new-my-script-does-not-work-topic/122693/1