If you want to execute a script from netwatch, it can only have ‘read’ ‘write’ ‘reboot’ 'test’ permissions. Using global variables requires the ‘policy’ permission.
I saw some workarounds to this problem on another thread that essentially scripted the functionality of netwatch in a schedule. Another used static dns entries to replace global variables.
What worked for me was to schedule a status monitor for netwatch:
This will be "up" or "down"
Code: Select all
:global nwstatus [/tool netwatch get [find comment="my netwatch host comment"] status]
Hope it helps and if you have a better way, please share!