DontBeAPadavan / rrdstorm

RRD-driven graph statistics for routers

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

RRDStorm

This script will helps to collect various statistics about your router and visualize it with some cool graphs.

Installation

  • 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.

About

RRD-driven graph statistics for routers


Languages

Language:Shell 100.0%