Giter Site home page Giter Site logo

ax88u_traffic_stats_server's Introduction

Traffic stats server for AX88U

snmpd crashes the Asus AX88U, and mini_snmpd as has been suggested in the forums as an alternative, does not appear to support 64-bit counters.

I created this to get around all that. It's a simple Flask application that will read interface counters from /sys and return them in an MRTG compatible format.

To install it, after installing Merlin firmware if you're not already running it, enabling custom scripts, enabling entware, installing python3, python3-pip and git, I'd suggest the following -

cd /jffs

git clone https://github.com/hyacin75/ax88u_traffic_stats_server

pip install -r /jffs/ax88u_traffic_stats_server/requirements.txt

then run the following for a one-time run, and add it to your services-start file in /jffs/scripts to have it start on boot -

gunicorn --bind 0.0.0.0:5000 --chdir /jffs/ax88u_traffic_stats_server wsgi:app --daemon

It will run on port 5000 on the router, and does not appear to be accessible via the WAN.

I'm sure it's not the most secure or well written thing in the world, but it does the job!

On the MRTG end, you have to install curl and html2text, and then set targets like so -

Target[192.168.0.1_8]: `curl -s http://192.168.0.1:5000/bond0 | sed -e s/\"//g | html2text`

That's it! Then you get graphs with support for throughput higher than what 32-bit counters support, and it supports interfaces mini_snmpd doesn't seem to, like bond0.11, wl0.1, tun11, etc -

Sample Graph

ax88u_traffic_stats_server's People

Contributors

hyacin75 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.