aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/inc/collectd.inc.php (follow)
Commit message (Collapse)AuthorAgeFilesLines
* inc/collectd: get_host_rrd_files: filter non-plugin .rrd filesPim van den Berg2014-07-241-1/+4
| | | | Closes #92
* Fix type confusionPeter Wu2014-07-201-3/+3
| | | | | | | | | index.php expects that collectd_hosts() always return an array for array_diff. Since an empty array evaluates to FALSE anyway, do not change the type and just return the empty array. In base.php, if no files are returned, the loop is never called and three variables are not initialized. Do it now.
* Keep the list of plugins sortedVincent Brillault2014-06-281-0/+1
|
* Add support for multiple types dbDao-hui Chen2014-06-111-16/+23
|
* graph.php: use JSON plugins instead of including PHP plugin filesPim van den Berg2014-05-121-0/+24
| | | | | | | | | | | | 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.
* move collectd_flush function to base classPim van den Berg2014-05-031-65/+0
|
* inc: mv graphs_from_plugin, build_url functions to html.inc.phpPim van den Berg2014-05-031-69/+0
| | | | They generate html.
* inc/collectd: consistently return false instead of an empty array or falsePim van den Berg2014-05-031-15/+17
| | | | | | | | | This means we have to check the return value of these functions for example before doing a foreach. We can't just do a foreach and assume the return value of a function is an array, while it can be false and results in a PHP warning. Closes: https://github.com/pommi/CGP/pull/68
* add rrdcached flush supportPim van den Berg2014-03-221-31/+44
|
* inc/collectd.inc.php: use RegexIterator + strip $dir from resultPim van den Berg2014-03-221-8/+7
|
* inc/collectd.inc.php: replace glob by php5 iteratorsŁukasz Kostka2014-03-221-2/+23
|
* use & instead of & in htmlPim van den Berg2014-02-101-2/+2
|
* inc/collectd.inc.php: typoPim van den Berg2013-08-241-1/+1
|
* inc/collectd.inc.php: don't group type instances when snmp + if_octetsPim van den Berg2013-08-241-1/+4
| | | | | | | | The snmp plugin is saving if_octets this way: <host>/snmp/if_octets-<port>.rrd Where the interfaces plugin is saving if_octets with this structure: <host>/interface-<port>/if_octets.rrd
* integrate jsrrdgraph in CGPPim van den Berg2013-05-181-6/+15
|
* rewrite some code of added overview_filter featurePim van den Berg2013-03-301-7/+4
| | | | Use less variables, less code.
* add feature to show a subset of graphs from a plugin on overview pageRohit Bhute2013-03-301-1/+12
|
* inc/collectd.inc.php: remove . and .. from scandir before foreachPim van den Berg2013-02-091-2/+2
| | | | Reported-by: Reza (http://pommi.nethuis.nl/collectd-graph-panel-v0-3/#comment-26990)
* resolve php warning/notices when plugin doesn't existPim van den Berg2012-12-281-0/+5
| | | | | For example when a non existing plugin is defined in $CONFIG['overview'] it causes a lot of php warnings/notices.
* explicitely defined undefined variablesMatthias Viehweger2012-10-201-4/+4
| | | | this should keep the error.log clean
* change whitespace, indentation or line-breaksMatthias Viehweger2012-10-201-4/+4
|
* add support for varnish plugin categoriesPim van den Berg2012-09-071-21/+17
| | | | | | | | | | | | | | | Since commit collectd-4.10.0-88-g02e12db the varnish plugin groups collected values in categories. The collectd filestructure used for varnish is now: <plugin>-<category>-<plugin_instance>/<type>-<type_instance> Because this isn't distinguishable from a regular plugin like df, ... df-var-tmp/df_complex-free.rrd ("var" isn't the category here) ... the category is only set with the varnish plugin. Reported-by: Jonathan Huot <jonathan.huot@gmail.com>
* order graphs by pi, t, tiPim van den Berg2011-12-031-0/+13
|
* include trailing slash in config weburl variablePim van den Berg2011-10-081-1/+1
| | | | | | | When running CGP in the root, the header didn't link to the overview page because the href was empty. Reported-by: Nikoli <Nikoli@lavabit.com>
* plugin/libvirt: collectd 5 compatibilityPim van den Berg2011-07-041-2/+3
|
* plugin: add libvirt pluginPim van den Berg2011-07-041-1/+1
|
* log unixsock errors instead of printing themPim van den Berg2011-06-151-6/+6
| | | | | These errors got concatenated in front of the image, which resulted in an invalid image.
* 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.