This script will helps to collect various statistics about your router and visualize it with some cool graphs.
- Install Entware,
- Install necesary packages:
opkg install bash cron rrdtool
- Download rrdstorm.sh, make it executable and initialize round-robin database:
wget --no-check-certificate -O /opt/bin/rrdstorm.sh https://raw.githubusercontent.com/DontBeAPadavan/rrdstorm/master/opt/bin/rrdstorm.sh
chmod +x /opt/bin/rrdstorm.sh
rrdstorm.sh create 0 1 2 3 4 5
- Configure cron to update stats (once per minute) and graphs (once per hour):
wget --no-check-certificate -O /opt/etc/cron.1min/rrdstorm_update.sh https://raw.githubusercontent.com/DontBeAPadavan/rrdstorm/master/opt/etc/cron.1min/rrdstorm_update.sh
chmod +x /opt/etc/cron.1min/rrdstorm_update.sh
wget --no-check-certificate -O /opt/etc/cron.hourly/rrdstorm_graph.sh https://raw.githubusercontent.com/DontBeAPadavan/rrdstorm/master/opt/etc/cron.hourly/rrdstorm_graph.sh
chmod +x /opt/etc/cron.hourly/rrdstorm_graph.sh
sed -i 's|root|admin|g' /opt/etc/crontab
/opt/etc/init.d/S10cron start
Now check http://my.router/custom/rrdstorm/index.html page from web browser:
All images will be updated once per hour.