Feature Request: Event Handling

I would like to see some sort of event handling option in Mikrotik. Along the lines of: on [event] do [action].

At the moment we have to use the scheduler to periodically check for a certain condition. It would be great to have this work the other way around where an event occurence could fire off an action.

something like this would be cool on a pppoe server with low activity:

/ interface pppoe-server server set [ find ] login-event={
:log info ( [ / interface pppoe-server get $instance name ] . \_ . [ / ppp active get $entry name ] )
}

or perhaps something more generic would be cool

/ system event add on-event=pppoe,login source={
:log info ( [ / interface pppoe-server get $instance ] . \_ . \
[ / ppp active get $entry name ] )

asynchronously would be nice…

Count me in in this request.

Me too :wink:

Best regards,
Christian Meis

Me too.

PPP login/logout events.
DHCP events
for the daring, a firewall filter or mangle action of ‘run script’.

vrrp & netwatch have this functionality already. similiar implmentation on other modules would be good.

I’ll sixth that. :smiley:

Something like this would be great.

Perhaps as something similar to the “log” actions, with some fancy new marchers (regex!), and some prepopulated relevant variables. :slight_smile: Just a thought.

–Eric

i’ts planned, but not sure when it will be ready

this is main part of API we were talking about before.
if you just add objects, reference and compilation to it.

as already said, no

and now ?