hi, I would like to create an automatic reboot system if the 8.8.8.8 ping goes down after 5 minutes. Anyone help me?
With netwatch e script??? ![]()
Watchdog
but it doesn’t reboot
Then your setting it up wrong because that’s what it is supposed to do.
https://help.mikrotik.com/docs/display/ROS/Watchdog
Use ping watchdog.
but it reboot infinitely.
I would only like it once
You said it should reboot when 8.8.8.8 is unavailable ?
That’s what watchdog does then.
And otherwise you need to be a bit more clear on exactly what you are trying to achieve.
Use this:
:if ([/ping 8.8.8.8 count=6] = 0) do={/system reboot [find]}
I hope it helps you.
In the Netwatch?
# Netwatch (Host tab)
Host: 8.8.8.8
Type: simple
Interval: 00:05:00
Timeout: 1.00
# Netwatch (Test tab)
:local HOST $host
:local HostStatus [/tool netwatch get value-name=status [find host=$HOST]]
:if ($HostStatus="down") do={/system reboot}