So I have two ISPs, both PPPoE clients.
So I use the "On Down" field to send an email when the link is down like this:
The problem is, it will keep sending the emails times infinity until the link comes back up and fill up my email, any ideas what can I do to make sure it only retries sending the mail if it failed the first n number of times and stop once it's successfully sent at least once?
Code: Select all
/tool e-mail send email@example.com subject="MikroTik" body="ISP2 went down" start-tls=yes