is it possible to write to the log on up / down events in the netwatch tool?
if so how!
is it possible to write to the log on up / down events in the netwatch tool?
if so how!
in the down-script add line ‘:log message=“Host down!”’, in the up-script “Host up!” accordingly.
Edgars
thank you very much ![]()
Here’s simple example
Create by terminal
/tool netwatch add host=8.8.8.8 interval=30s up-script=":log info \"Ping to 8.8.8.8 successful\""
Or here’s the Up or down script format
:log info "Ping to 8.8.8.8 successful"