Netwatch hAP Lite doesn't work automatically

I have a netwatch script in case of down:

interface/wireguard/peers/disable 0
interface/wireguard/peers/enable 0

If I execute manually by winbox when down, everything works fine.

Does anyone know what can be the reasons why it doesn’t work automatically?

Am I missing something?

I made a script for logging WireGuard using NetWatch, see here:

http://forum.mikrotik.com/t/tool-using-splunk-to-analyse-mikrotik-logs-4-0-graphing-everything/153043/3

Thanks, I am testing.
I will let you know in a day :slight_smile:

For now, super thanks!

You bring me on the right way, but your script didn’t work.

I create a script very easy:

########################
interface/wireguard/peers
disable 0
interface/wireguard/peers
enable 0
########################

and add the Netwatch to the Script.