Gateway Monitoring...

Hi Buddy…

I have add the Gateway monitoring script..

And try to use the system scheduler print detail to check and there is no error show..
but, some how, when tested, it’s not working to check the connectivity to the gateway…

(Below script is paste in the new terminal)
system scheduler add name=Gateway-watch-dog start-time=startup interval=5m on-even=“:if ([/ping "$[/ip route get [find distance="1"] gateway] count=10)=0) do={system reboot}”

(Below is the content when check back in the system scheduler content)
:if ([/ping "$[/ip route get [find distance=“1”] gateway] count=10)=0) do={system reboot}

For more information, i have only 1 gateway been assigned.

thanks.


is this script have some bug?