Purpose
Once I needed small statistics collecting and displaying solution, that I could access from my web browser on a server where PHP was not an option. Because of that Cacti was not an option. So I quickly hacked this piece of shi^H^H^H script :-)
I'm not going to explain how to setup collectd, a statistics gathering daemon which I use for myself.
Output
Sample output:
Requirements
- collectd (for collecting data to RRD)
- rrdtool (for RRD libraries and graphing tool)
- simple httpd server, e.g. lighttpd (don't worry Apache works too ;)
(It's also possible to use SNMP and write data to RRD yourself)
Little step by step guide of my crappy script
1) These files should be placed under /opt/graphrrd/ Or if you want in another place (e.g. your home dir), you'll have to substitute corresponding lines in scripts.
2) The output by default will be placed in /var/www/stats/, so create that dir before running any script.
3) Some default values are in /opt/graphrrd/_values check them out.
4) To make sure everything is OK run /opt/graphrrd/graphall If you see any errors/warnings, then act according to them. Else go to step 5.