Community discussions

 
csalvo
just joined
Topic Author
Posts: 2
Joined: Tue Oct 25, 2016 10:36 pm

Router down alert

Wed Dec 14, 2016 1:30 am

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
 
tr00g33k
Frequent Visitor
Frequent Visitor
Posts: 84
Joined: Sun Mar 29, 2015 3:58 pm

Re: Router down alert

Wed Dec 14, 2016 7:24 am

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
 
User avatar
bajodel
Long time Member
Long time Member
Posts: 545
Joined: Sun Nov 24, 2013 8:30 am
Location: Italy

Re: Router down alert

Wed Dec 14, 2016 9:56 pm

Who is online

Users browsing this forum: No registered users and 26 guests