aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/plugin/cpu.php (follow)
Commit message (Collapse)AuthorAgeFilesLines
* graph.php: use JSON plugins instead of including PHP plugin filesPim van den Berg2014-05-121-48/+0
| | | | | | | | | | | | A couple of big changes here. A lot of logic moved to graph.php. The PHP plugin files have been rewritten to JSON. In these JSON files *everything* is optional. Also *NOT* having a JSON plugin file won't block you from having a graph. The JSON will just make the graphs prettier (by having a title, y-axis title, legend, colors, etc..). The Collectd types.db file is parsed and used to determine RRD content. When things are not defined in the JSON it will fallback to a default.
* rename ds_names and dsname to legendPim van den Berg2014-05-031-1/+1
| | | | This had nothing to do with an RRD data source.
* move collectd_flush function to base classPim van den Berg2014-05-031-2/+0
|
* type/Default: don't depend on external function GETPim van den Berg2014-05-031-1/+1
|
* move width/heigth from plugins to type __constructPim van den Berg2013-05-131-2/+0
|
* plugin/cpu: default scale to 100%Erik Grinaker2011-09-101-0/+1
| | | | To be able to easily compare graphs with different max values.
* plugin: remove php close tagsPim van den Berg2010-10-101-2/+0
|
* automatic alignment of graph legendPim van den Berg2010-09-171-6/+6
| | | | | Function fill_ds_names is renamed to parse_ds_names and now also appends spaces to ds_names to make them equal of lenght.
* make rrdtool executable configurablePim van den Berg2010-01-121-1/+1
|
* rewrite of type classesPim van den Berg2009-12-311-17/+4
| | | | | | | | | | | | | | | | | A constructor is added to the Type_Default class. The constructor will parse GET values (such as host, plugin, pinstance, type, tinstance, seconds), create an array of all needed rrd files to generate a graph and substract identifiers from these rrd files. Because of the constructor (and related functions) it is not needed to define an array of tinstances to be grouped and shown in one graph. Also $obj->args don't have to be defined per plugin. This will result in smaller plugin files. The type classes are based on the fact that a plugin has multiple type instances OR multiple rrd data sources. This is called the source and is retrieved by rrd_get_sources in each rrd_gen_graph function. Also variables in function rrd_gen_graph have been renamed to better ones.
* always show 'on $host' in the rrd titlePim van den Berg2009-12-311-1/+1
| | | | 'on $host' doesn't have to be added manually to rrd_title anymore.
* add unixsock flush supportPim van den Berg2009-11-041-0/+2
| | | | | | | | | | | | | | Via the UnixSock plugin of Collectd it is possible to send commands to the Collectd daemon. One of the commands is the FLUSH command, which you can use to let the daemon write cached data to the rrd files. CGP uses the FLUSH command before generating a graph and before showing the load information on the main page. In this case the information shown via CGP is always up-to-date. Also when you have configured the RRDTool plugin of Collectd with a CacheTimeout setting. This commit includes code based on functions collectd_identifier and collectd_flush from php-collection by Bruno Prémont.
* remove path_format from pluginsPim van den Berg2009-11-041-1/+0
| | | | | | | | | The relative path to an rrd file can be generated based on host, plugin, plugin instance, type and type instance. In this case path_format is not needed anymore. This commit includes code based on the collectd_identifier function from php-collection by Bruno Prémont.
* change webdir/weburl and include/require usagePim van den Berg2009-09-281-3/+3
| | | | | | | | - Don't depend on includes from files that are included. - Don't use webdir with includes/requires (also because webdir couldn't be available in some cases). - Use common.inc.php instead of config.php in all plugins to have all configuration settings available.
* initial import of cgpPim van den Berg2009-09-201-0/+65
Collectd Graph Panel is a frontend for Collectd written in PHP. The goal of CGP is to provide an easy-to-use frontend for Collectd, starting with page that shows an overview of all the hosts you are managing with Collectd. In this initial import there is support for the plugins that are default enabled in Collectd. The supported plugins are located in the plugin directory.