Community discussions

MikroTik App
 
OriiOn
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 89
Joined: Thu Feb 25, 2010 11:54 am

Netwatch watch multiple hosts

Fri Oct 13, 2017 4:09 pm

How can I make netwatch watch 2 or more hosts, and only execute a script if all specified hosts (IP's) fail?

I am pretty sure it's not possible out of the box. But I guess if I have several Netwatch entries (one per host/IP), and each of them sets a "flag", I could test that flag inside the script, and only run the script if all flags are set. How exactly would I do that?
 
User avatar
Anumrak
Forum Guru
Forum Guru
Posts: 1174
Joined: Fri Jul 28, 2017 2:53 pm

Re: Netwatch watch multiple hosts

Thu Oct 26, 2017 1:11 pm

You need the simple scheduler task, that will ping hosts that you need by a script inside task. After that, you can wright any scenarios you want. Netwatch can ping only one IP.

Who is online

Users browsing this forum: capy2008, mkx and 73 guests