Script to ping

Hi all

I did read about sms capability on mikoritk, so i want to make a script to know when some equipment fail (electricity issue), and then i will make to mikrotik send me a sms

I get the sms issue but I don’t know to make a ping, so i need by a script, make ping to an ip and when that ip doesn’t response change some variable and save it, or something.

Thanks and regards

you can use netwatch tool to monitor remote addresses.

Netwatch is useful if your link is very reliable as it performs it’s actions based on the results of a single ping attempt. It’s also useful because it’s quick and easy to implement.

For a more versatile and failsafe way to do ping monitoring, check out “Better Netwatch”, here:
http://forum.mikrotik.com/t/better-netwatch/9058/3

wrong - netwatch send several (3) pings, and if all of them fails then down script is triggered