Made an external bandwidth monitor for OpenWrt

I made an external bandwidth monitor for OpenWrt similar to vnstat in a web server. I am currently using a Raspberry Pi Zero 2W for a PHP web server. There is no need to install any package in the router and also reboot or sysupgrade the router unlimited times. All it does is probes the router every hour and gets the Rx, Tx data and processes it. Since the data is stored in an external server the data is not lost on reboot or sysupgrade.

I made it using PHP and SQLite and currently testing the data for reliability. It can also monitor a local interface too, also testing in a VPS.

If someone is interested in testing I will share the code soon, just keep in mind that this just a side project I made and the data might be highly inaccurate but right now the data is very similar from the router's interface page.

4 Likes

Maybe share how others can get it?

Like i said I am testing it right now for data reliability. The code is raw and full of comments and unnecessary code, I need to format and clean the code before I can publish it soon.

Respectfully, why post this here then right now at all?

2 Likes

Because if someone is interested in it then I ll post it here and if no one wants it then I ll keep using it myself.

1 Like

Here is the link to the project https://saudiqbal.github.io/PHP/External-Bandwidth-Monitor-OpenWrt-Interface-PHP-SQLite-vnstat.html with instructions.

Just test it and see if it works if not then just delete the folder, it was a good fun project.

Reply here if the script works or does not work and your comments and reviews.

Data reliable?
  • Yes
  • No
0 voters