eworm-de / routeros-scripts

a collection of scripts for MikroTik RouterOS
GNU General Public License v3.0
1.27k stars 285 forks source link

Add notify-on-dhcp-lease script #32

Closed bubenkoff closed 1 year ago

eworm-de commented 1 year ago

Do you really want to receive a notification for every DHCP (re-)lease? That can cause a massive flood!

My suggestion on this: Install log-forward, then tell it to forward all messages about DHCP:

:global LogForwardInclude "(dhcp)";

You will receive one notification (with all log messages) a minute at max, and this is even rate limited when it happens too often.

If you still want this... You can always install as custom script.

bubenkoff commented 1 year ago

well, one might want this functionality, and another one might not, hence this is a separate installable script