Ether interface status change notification?

Is there a script, or the basis of a script that I can start with, that will monitor either the status (up or down) of an interface?

With logging to memory of topic: info I get this:

ether3 link down

which is good, but I was hoping to send a notification of this event (including the date and time of this change).

Thanks.

Are you familiair with Netwatch?
https://help.mikrotik.com/docs/spaces/ROS/pages/8323208/Netwatch

Thank you, I am.

I am hoping there is a more direct manner to monitor the same status that is being logged, and not whether there is connectivity to the device(s) on that interface.

I found this thread:

http://forum.mikrotik.com/t/email-script-when-interface-status-change-running-or-not-running/147386/1

that suggests a syslog action of email might work.

But, I don’t want all topic: interface log messages emailed.

Only when ether3 goes down. Nothing more.

I see there is a regex option in the logging. I’ll try simply using “ether3 link down” as the regex expression as that is the exact log entry.

The logging works great.

/system logging action
add email-to=<user>@<domain>.com name=email target=email

/system logging
add action=email regex="ether3 link down" topics=info

I have it set to email me (for now):
Screenshot 2025-04-11 191530.png