how to monitor WAN uptime?

I have a RouterBoard appliance deployed at a remote site. The device connects to the Internet by a radio uplink from a regional ISP.

I need to know how reliable is the WAN connection and I want to ask the router to monitor its WAN connection and either log, or email, to report time and durations of any service interruptions.

The connection has ICMP disabled, so I cannot ping or traceroute in or out of the remote network.

Any advice or suggestions will be appreciated. I am fairly new to this game, so please be gentle.

thanks,
Larry

RB2011UiAS-2HnD-IN running RouterOS 6.1

you can monitoring a wan connection through downloading a file of any website, if the file is unreachable you can assume is not working.

do {tool fetch mode=http url=http://www.anyhots.com/file.jpg ; file remove file.jpg} on-error={log error “the file cannot be downloaded”}you can execute every 10 sec or every 1 min with scheduler

Thanks for the suggestion!

It works.

In accord with your instructions, I created the following script;

do {tool fetch mode=http url=http://lafreebee.com/wp-content/uploads/2010/04/doo-dah-parade.jpg ; file remove doo-dah-parade.jpg} on-error={log error “the file cannot be downloaded”}

I initially mistakenly prepend the number 1 to the script and it didn’t run.

I ticked all of the checkboxes in the script setup for policy. Not sure which ones are necessary, but it works when they are all selected.

I ran the script without error, then disconnected the Internet connection and ran it again, to get the desired error.

Thanks again.

You can remove the section of “file remove file.jpg”

sent from my mobile phone using tapatalk