Community discussions

MikroTik App
 
MikRu
just joined
Topic Author
Posts: 21
Joined: Sat Mar 09, 2013 6:59 pm

NetWatch - get IP from host parametr

Mon Jul 15, 2019 4:04 pm

How to get IP from host parameter of netwatch rule, and use it in "UP|Down" section.

bad example:
/tool netwatch add host=8.8.8.8 up-script="log warning 8.8.8.8 is UP"

what i want:
/tool netwatch add host=8.8.8.8 up-script="log warning $host is UP"
 
MikRu
just joined
Topic Author
Posts: 21
Joined: Sat Mar 09, 2013 6:59 pm

Re: NetWatch - get IP from host parametr

Thu Jan 21, 2021 11:42 am

any ideas?

Who is online

Users browsing this forum: No registered users and 98 guests