|onefang 810b6e31b5||1 year ago|
|cgi||1 year ago|
|conf||1 year ago|
|doc||2 years ago|
|inc||1 year ago|
|js||5 years ago|
|layout||1 year ago|
|plugin||1 year ago|
|type||1 year ago|
|.gitignore||1 year ago|
|.htaccess||3 years ago|
|LICENSE||2 years ago|
|README.md||1 year ago|
|detail.php||1 year ago|
|graph.php||3 years ago|
|host.php||1 year ago|
|index.php||5 years ago|
|rrd.php||1 year ago|
Collectd Graph Panel (CGP) is a graphical web-based front-end for visualizing RRD collected by collectd, written in the PHP language.
The latest version of CGP can be found on https://github.com/pommi/CGP. When you have improvements or fixes, do not hesitate to send a pull request!
CGP has the following hard requirements:
rrdtoolprogram, expected at
/usr/bin/rrdtool(can be changed in the configuration file,
shell_execmust not be disabled through the
disable_functionsini directive. It must allow execution of the
The following software is optional, but nevertheless highly recommended:
canvassupport such as IE 9+, Firefox, Chrome, Opera 9+. Optional unless you use
$CONFIG['graph_type'] = 'canvas'.
CGP is designed to run out of the box. If you want to modify some configuration
settings, please create
conf/config.local.php to overrule the settings from
In a default configuration, the server will execute
rrdtool to draw PNG
graphs. These pictures are static and can put quite a burden on the server. For
more flexibility, set
$CONFIG['graph_type'] = 'canvas'. This will make web
browsers download the RRD files and allows the user to zoom and move though the
history using their pointer device.
See doc/nginx.conf for an example configuration for the nginx web server.
.htaccess file in the top-level directory can serve as a guide for Apache
AllowOverride directive to your virtual host configuration
Although the default configuration “just works”, you can further improve your set up to reduce data usage and CPU time:
$CONFIG['rrd_url']to a directory directly accessible by the web server such that it can provide better cache control than PHP.
pnggraph type, consider
canvasto relieve the web server. This moves the image processing to the client that views the picture.
open_basedirsetting of PHP, or at least put the RRD data dir in the beginning. When enabled, PHP (at least 5.5.14) scans though every path component which is quite costly if you have over 100 RRD files and a deep directory hierarchy. 17 seconds was observed for four path components (with
.at the end), this dropped down to 4.8 seconds when prepending the RRD data directory to the beginning. When disabled, processing took less than a second.
CGP is released under the terms of GPL version 3. See LICENSE for the full license text.
CGP is authored by Pim van den Berg with contributions from many other people.
Canvas support depends on jsrrdgraph by Manuel Luis, https://github.com/manuelluis/jsrrdgraph
apt-panopticon by David Walter Seikel