- Very simple. Receive interface counters, parse on hours and save in SQLite database.
- Not need public static ip. Router send data to script on shared hosting.
- Email-notify to users about amount of traffic
- Create mikrotik script
:local sysnumber [/system routerboard get value-name=serial-number]
:local txbyte [/interface ethernet get ether1-gateway value-name=driver-tx-byte]
:local rxbyte [/interface ethernet get ether1-gateway value-name=driver-rx-byte]
/tool fetch url=("http://server.com/tikstat/collector.php\?sn=$sysnumber&tx=$txbyte&rx=$rxbyte") mode=http keep-result=no
- Add this script to mikrotik scheduler
- View graphs
tikstat use PHPMailer for sending messages for users