Skip to content

A simple Mikrotik traffic counter script with web interface

Notifications You must be signed in to change notification settings

mrkrasser/tikstat

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

tikstat - A simple Mikrotik traffic counter script with web interface

why?

  • 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

how?

  1. 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
  1. Add this script to mikrotik scheduler
  2. View graphs

needed

tikstat use PHPMailer for sending messages for users

About

A simple Mikrotik traffic counter script with web interface

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages