Collected Graph Panel

CGP is a PHP web-interface providing access to graphs generated from RRD files made by collectd. It makes pretty pictures!

Setup

Download the git HEAD to a public directory.

git clone http://git.nethuis.nl/pub/cgp.git

Edit conf/config.php and make sure the variables are correct. Set the version variable to the same version of collectd.

Apache Configuration

Alias /cgp "/var/www/localhost/htdocs/cgp"
<Directory "/var/www/localhost/htdocs/cgp">
AllowOverride None
Options None
Order deny,allow
Deny from all
Allow from 1.2.3.4
Allow from 127.0.0.1
</Directory>
CPanel Integration

On some CentOS installations, with CPanel installed, you'll need to edit a specific file to get the CGP alias working:

/usr/local/apache/conf/includes/post_virtualhost_global.conf

Notes

Your PHP setup must disable all error reporting. PHP errors will cause the graphs not to be generated, but will not be displayed on the web interface.


Navigation
QR Code
QR Code cgp (generated for current page)