Ok, here's my CGI solution :-)
Prerequisites:
- rrdtool package already installed (rrdtool.sh is only modified)
- thttpd without php because max. execution time >30 sec required (if you need php, you could run both versions on different ports)
- thttpd with cgi scripts enabled in /cgi-bin/*
- write access to directories containing *.png files for user running thttpd (usually nobody)
Download:
http://www.photo-photo.at/download/wl-500gx/rrdtool-cgi.tar.gzSee if the directory structure fits you needs.
Create CPU usage & CPU load database, if needed:
/opt/usr/bin/cpuusage.sh create
/opt/usr/bin/graphcpu.sh create
Add the following lines to your crontab (replace line with rrdtool.sh, or remove it from cron.5mins):
*/5 * * * * admin /opt/usr/bin/graphcpu.sh update; /opt/usr/bin/rrdtool.sh
*/3 * * * * admin /opt/usr/bin/cpuusage.sh update
View in browser:
http://yourrouter:port/rrd/index.htmlhttp://yourrouter:port/cpu/cpu_usage.htmlhttp://yourrouter:port/cpu/cpu_load.htmlGenerating graphs takes about 30 secs each, so be patient.
I hope, I didn't forget anything :-)
Maybe, I'll try iptables based statistics next ;-)
Oh, I forgot to mention, this is for Olegs firmware, so maybe it's in the wrong forum ;-)