Im trying to make a script that disables an interface if it has less than X traffic for X minutes with an alert to my mail
But I can’t do it, could someone aid me or point me in some direction?
Did you look at /tool/traffic-monitor (or in winbox Tools > Traffic Monitor)? That lets you add script based on some interface stats, so that could be /tool/e-mail/send in your case.