Page 1 of 1

Send email when gateway failover

Posted: Mon Jan 17, 2011 6:42 pm
by andreako
Hi everbody,

I need help with the email configuration. I am using RB 750G and I have to isps interface.

I am able to change the routes when one fail without script (using ping gateway) and I need to send an email notification when this thing happen.

The notification must work from 8 in the morning until 23

Can somebody help me?

Thanks in advance.

Re: Send email when gateway failover

Posted: Wed Jan 19, 2011 2:29 pm
by andreako
Please :(

Re: Send email when gateway failover

Posted: Wed Jan 19, 2011 2:57 pm
by SurferTim
You can check out this wiki.
http://wiki.mikrotik.com/wiki/Email_set ... leshooting
If you have a question about any of it, post your question.

Re: Send email when gateway failover

Posted: Sun Jan 23, 2011 11:56 pm
by strg
:if ([/ping gatewayip count=4]=0) do={
:log info \ "Gateway down"
/tool e-mail send to="youremail" subject="Gateway DOWN" body="MAIL ROUTER" from=routeremailaddress server=emailserveripaddress
}

Re: Send email when gateway failover

Posted: Wed Jan 26, 2011 2:03 pm
by andreako
Ok thanks

I will try this script and let you know

Re: Send email when gateway failover

Posted: Wed Aug 06, 2014 2:53 pm
by Zapnologica
I am looking for a similar solution.

did you come right with this?

I want to email a user when a gateway is un-accessible or the route switches to the next distance.

Re: Send email when gateway failover

Posted: Sun Oct 28, 2018 2:35 pm
by ukzerosniper
:if ([/ping gatewayip count=4]=0) do={
:log info \ "Gateway down"
/tool e-mail send to="youremail" subject="Gateway DOWN" body="MAIL ROUTER" from=routeremailaddress server=emailserveripaddress
}
Hey,

How would we actually use this script to email? Does it create a schedule or something?

Thanks in advance.