Download limit warning

Hi all

New to the forum so please be patient

I have a customer with a Mikrotik LHG LTE6 kit (RBLHGR&R11e-LTE6) dish and he is constantly going over his monthly download allowance of 300GB. I want to put a script in place that will notify him and me if he gets within 80% of his limit. I know the traffic monitor can be used for this but I can only see how to do that with download speed and not total monthly download amount. Hope i explained it clearly enough

Phoneranger

See http://forum.mikrotik.com/t/interface-data-quota/79514/1 … works well. I even use a version with 2 SIM cards in the LTE.
This is on turning down the interface when at 100%, till the period is reset this avoids getting over the limit and paying for that. But adding action at 80% should be no problem.
There was a little counting error on reset/restart/power-off of the device. Has been fixed. I only write the result to flash every 10 minutes, to limit the number of flash writes. I may loose that 10 minute consumption if reset happens right before the write operation. ISP’s count a bit different, I can go 2% higher in the quota. Quota reset is automatic on the specified day of the month.

@bpwl Many thanks for that. Looks just what i am looking for. Really appreciated. Phoneranger