aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/inc/collectd.inc.php (follow)
Commit message (Collapse)AuthorAgeFilesLines
* inc/collectd: improve determining which files to group in 1 graphPim van den Berg2010-10-041-33/+44
| | | | | | | | | | | | Previously graphs were created by collecting and merging all PIs, Ts and TIs separately. This went wrong when a part of a plugin had a PI and another part had not (processes plugin). It also went wrong when a P-PI combination had different Ts and TIs (bind plugin). This is solved by using grouped and deduplicated plugindata. -- P = plugin, PI = plugin instance, T = type, TI = type instance
* inc/collectd: simplify the way collectd_plugindata gathers its dataPim van den Berg2010-09-191-23/+10
| | | | A couple of preg_replaces are replaced by one simple but effective preg_match.
* default graph time range is now configurable (not only for uptime)Pim van den Berg2010-06-261-3/+5
|
* use the same time range for the link to the detail pagePim van den Berg2010-06-221-4/+7
|
* Default time range on the summary page is now configurableManuel CISSÉ2010-06-221-1/+3
|
* show all type instances in one graphPim van den Berg2010-01-011-1/+3
| | | | | | | | | | Planned for collectd version 5.0 is to move the type instance of plugins df and interface to the plugin instance (see source). From version 5.0 the default is to group data from a type instance OR data source in one graph. In case of version 4 there are only 2 plugins to exclude from this: df and interface. Source: http://collectd.org/wiki/index.php/Plans_for_5.0
* better validation of possible user input (get)Pim van den Berg2010-01-011-0/+2
|
* rewrite of type classesPim van den Berg2009-12-311-17/+0
| | | | | | | | | | | | | | | | | 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.
* add unixsock flush supportPim van den Berg2009-11-041-0/+81
| | | | | | | | | | | | | | 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 code duplication from function graphs_from_pluginPim van den Berg2009-10-111-21/+5
|
* make width and heigth of graphs configurablePim van den Berg2009-09-291-2/+2
| | | | | | | | These configuration options have been added: - width - heigth - detail-width - detail-heigth
* initial import of cgpPim van den Berg2009-09-201-0/+176
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.