I have several 4G devices which I normally restart through SMS when needed, for instance when VPN is disconnected and does not reconnect on its own. Yesterday, I received a proposal to an idea where I can use netwatch so that the device automatically restarts within 10 minutes when internet connection is lost.
/tool netwatch
add disabled=yes down-script="/system reboot" host=8.8.8.8 interval=10m
When the connection was lost, the devices restarted itself in 10 minutes, the problem is that I did not know that the devices run the netwatch script within one second of restarting. My question is, since I can send an API request to my devices, is it possible to disable the netwatch script via SMS?
Thanks in advance.