I have tool netwatch configured to run some script, which consists of the only command to send email:
name="dlap1-down" owner="kostik" policy=read,write,policy,test,sensitive
dont-require-permissions=no run-count=0
source=/tool e-mail send subject="dlap1 down" to=kostik@tom.home
This results in error
18:20:03 script,error could not run script dlap1-down: not enough permissions
and of course no email is sent.
What permissions are needed for email ?
Borage
September 21, 2018, 2:07am
2
I have a similar issue after upgrading to 6.43.1. I have a script running at startup from the scheduler and now my log is full of errors.
/system scheduler
add disabled=no interval=10m name=Schedule1 on-event=Script1 policy=read,write start-time=startup
The above schedule configuration worked with RouterOS 6.42.x.
/system scheduler
add disabled=no interval=10m name=Schedule1 on-event=Script1 policy=ftp,reboot,read,write,policy,test,password,sniff,sensitive,romon start-time=startup
I changed the permission to get rid of the following error message. I’m not sure what caused the problem.
00:57:00 script,error could not run script Script1: not enough permissions
Edit: Obviously, the policy must match each other in both the scheduler and the script.
Same problem here, before last update netwatch with scripts it was working perfectly. Now in 6.43.2 when a host became down and launch and script it returns :
script,error could not run script hd_up: not enough permissions
Any news from mikrotik ??
2frogs
October 17, 2018, 1:59am
4
For some time now:
http://forum.mikrotik.com/t/netwatch-deprecated/119579/1
In short, Netwatch can only execute scripts with “write, read, test, reboot” policies. Remove all other policies from your scripts.
mrz
October 17, 2018, 7:58am
5
Or use dont-require-permissions=yes