Just in case someone find it's useful, there's a simple bash project with rrdtool to monitor bandwidth usage in Linux.
It's intended to monitor an Arris TG862 cable modem using the status page /cgi-bin/status_cgi.
It's very simple to use,
* Create the rrd data source with create_data_source.sh
* Add a cron job to start the actual monitoring with arris_stats.sh
* Use current_stats.sh to generate a graph showing bandwidth usage anytime you want.
I wrote it and any comment or feedback will be welcome
github.com/mluis7/cable_modem_stats/issues
Other possibly supported modems:
All these seems to have an Octets column in status page
CM550A, CM820A, TG852G, TG862G, TM402G, TM402P, TM502G, TM504G, TM508A, TM602G, TM604G, TM608G, TM702G, TM722G, TM822G, WBM760
If someone is interested on monitoring a cable modem or router from another vendor (Netgear , etc.), please:
* Create an issue at github.com/mluis7/cable_modem_stats/issues (preferred) mentioning its model and attach the status page HTML source as a file. The status page must contain a column for octets, unerrored codewords or other value for successfully sent packets.
* If you don't have a github account add your html sample as attachment to a comment here or the link to a pastbin with the html source.
↧