Router down alert

Hi guys!

I have some of my routers located in different geographic locations and on different networks. I need to be alerted when they go offline (some of them are located in areas with serious electricity issues).

Is there any way I can make one of my MikroTiks to periodically ping another one and send me an alert (email or SMS) if it doesn’t respond?
Is there any built-in function or a script available than you can share?

Thank you in advance!


Regards,
Claudio

Simple and easy way that i use, create a “netwatch host”, than under

1.) UP EVENT:

/file print file=XY_Router_UP
tool e-mail send server=xx.xx.xx.xx port=25 user=xx@xx.com to=xy@xx.com from=xx@xx.com subject="XY Router UP" body="XY Router UP"

2.) DOWN EVENT:

/file print file=XY_Router_down
tool e-mail send server=xx.xx.xx.xx port=25 user=xx@xx.com to=xy@xx.com from=xx@xx.com subject="XY Router DOWN" body="XY Router DOWN"

There is /file print file=XY_Router_down / up, even if THIS router where this script is running loses internet link (and will not be able to send email notify to you), you will know that lost the internet link from created files

http://www.mikrotik.com/thedude