How to notify for port's speed changing

Hello
I have a question:
I have on some devices the issue that sometimes, when there is a storm or other events, that the eth ports flaps and goes from 1G to 100M.
What can I run as a script or similar every xx minutes that checks a specific port?
in the event that ports is at 100M it can do some things:
a) change the negotiation settings; I have seen that is needed just to change add/remove a speed in the eth configuration, to let the port re-negotiate the speed correctly at 1G.
b) send notification, email or similar.
c) I have dude monitoring this device, can I do something from there?


thank you for all the hints that you may give.

:put ([/interface ethernet monitor ether1 once as-value]->“rate”)

can you give me a more detailed hint ?

use the scheduler

if you wanna this for more than one device, zabbix is pretty handy

Try to search for the master of scripts @rextended , like:
http://forum.mikrotik.com/t/script-to-check-port-speed-rate/52996/1