Good day,
Need some assistance that when my pppoe connection goes off that it will send a Email notification with netwatch , my failover is already setup. Just need the right scripting for the email notification.

My email is working correctly as well I have sent a test email.
Kind Regards
Ruben
Hello
Netwatch works by cheking a device reachability by using its IP Address.
So first, you should find the IP address that PPPoE server is using (note that if this IP change, netwatch function won’t work).
You can check remote address in the status tab of your client pppoe interface.
Since, you’re confortable with email just wrote command that will send you the email notification and link it with netwatch.
/system script add name=pppoe_down source={your_email_command_for_down_notification}
/system script add name=pppoe_up source={your_email_command_for_up_notification}
/tool netwatch add host=pppoe_server_IP_Address timeout=999ms interval=1m up-script=pppoe_up down-script=pppoe_down
Regards,
Jacob
Thank you Jacob for your reply.
If the PPPOE has a dynamic address will I need to change the IP address each time?
Kind Regards
Ruben
Hello
Most likely yes.
However, it’s not meant to be changing so often. May be once in a while.
But to overcome this, you can choose an IP address which is just behind the pppoe server and only reachable that way, or make a script with a scheduler linked which will take the remote address of pppoe client and set the netwatch host.
Regards
Jacob
You could run a script on schedule to check if pppoe_out1 is down and if it is then send email?
Probably not quite as “clean” as using Netwatch but would certainly overcome the problem.