aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/type (follow)
Commit message (Collapse)AuthorAgeFilesLines
* type/base: replace array_merge by + sign to merge a fallback arrayPim van den Berg2014-06-281-2/+2
| | | | | | | array_merge resets the index, while in case of $this->colors and $this->legend, we'd like to keep the index. An irq plugin sample: array(1 => 1, 'ERR' => 'ERR') must not become array(0 => 1, 'ERR' => 'ERR') after an array_merge.
* add percentile support to network traffic graphsPim van den Berg2014-06-242-0/+12
| | | | | | | Set $CONFIG['percentile'] to a number and a XXth percentile line + legend will be added to all network traffic (if_octets) graphs. Closes #81
* Add base option (1GB=1024Mo)Poil2014-05-181-0/+3
|
* type/base: set default title to "Plugin Type (PluginInstance) (Category)"Pim van den Berg2014-05-121-1/+13
|
* type/base: always use rainbow_colors and overwrite them afterwardsPim van den Berg2014-05-031-3/+4
| | | | | | Since the previous commit [type/base: show tinstances not defined in $this->order in graph] all type instances that are not defined in the plugin, are colored black. This way you always have nice colors.
* type/base: show tinstances not defined in $this->order in graphPim van den Berg2014-05-031-6/+5
| | | | | | Previously if $this->order was defined in a graph, only type instances that were defined in $this->order showed up in the graph. Now it merges $this->order and the type instances.
* rename ds_names and dsname to legendPim van den Berg2014-05-035-21/+21
| | | | This had nothing to do with an RRD data source.
* type/base: set default values for rrd_title and rrd_formatPim van den Berg2014-05-031-1/+2
|
* move collectd_flush function to base classPim van den Berg2014-05-031-0/+70
|
* type: move generic functions to base classPim van den Berg2014-05-035-300/+306
|
* type/Default: don't depend on external function GETPim van den Berg2014-05-031-14/+12
|
* add SVG graph supportPim van den Berg2014-03-231-3/+20
|
* type/Default: also escape * and ? in identifier before globPim van den Berg2014-03-231-1/+1
|
* type/Default: escape brackets in identifier before globPim van den Berg2014-03-221-0/+1
|
* type/Default: merge file2identifier function into rrd_filesPim van den Berg2014-03-221-12/+2
|
* mod_rewrite final cleanupsepich2014-03-211-2/+2
|
* fix heigth -> height typoPim van den Berg2013-12-291-4/+4
|
* Escape parentheses in filenamesJohan Bergström2013-11-141-2/+2
| | | The IPMI collectd plugin uses parentheses in filenames (`fanspeed-FAN 1 fan_cooling (29.1).rrd`), so we need to escape them before passing them to rrdtool.
* Revert "type: fix undefined index in ds_names[$source] before empty check"Pim van den Berg2013-10-094-4/+4
| | | | | | | | | | From the docs: "No warning is generated if the variable does not exist. That means empty() is essentially the concise equivalent to !isset($var) || $var == false." This reverts commit f2a4593558b3a3ec696e9cc1de93fa898b9521bb. Reported-By: Benoit Monin (https://github.com/pommi/CGP/commit/f2a4593)
* type: fix undefined index in ds_names[$source] before empty checkPim van den Berg2013-10-074-4/+4
|
* Merge pull request #21 from benoit-monin/fix_undefined_indexPim van den Berg2013-10-074-4/+4
|\ | | | | Fix undefined index for ds_names in type classes
| * type: use empty to access ds_namesBenoît Monin2013-08-313-3/+3
| | | | | | | | | | Fix some potential undefined index errors by using the empty function to access ds_names in type other than default.
| * type/default: fix 'undefined index' in rrd_gen_graphBenoît Monin2013-08-311-1/+1
| | | | | | | | | | Fix php notices emitted when generating graphs of ping, sensors and hddtemp plugins.
* | type/GenericStacked: make stack NaN-safe using ADDNAN instead of +Pim van den Berg2013-10-071-1/+1
|/ | | | | Reported-By: Julien Genestoux <julien.genestoux@gmail.com> (https://github.com/pommi/CGP/issues/24)
* type/default: escape spaces in filenamesPim van den Berg2013-08-241-0/+3
|
* type/default: urlencode filenames when using canvasPim van den Berg2013-08-041-0/+2
| | | | | | | | | Since commit v0.3-97-g5793a8c [integrate jsrrdgraph in CGP], double quotes have been removed around filenames and legend because it shouldn't be necessary (and jsrrdgraph didn't support it). This broke graphs rendered using jsrrdgraph with files including spaces in it's name. Hopefully this is fixed now by rawurlencoding them (but the /).
* type/default: double escape colon in legend/filename when not using canvasPim van den Berg2013-08-041-1/+7
| | | | | | | | | | | Since commit v0.3-97-g5793a8c [integrate jsrrdgraph in CGP], double quotes have been removed around filenames and legend because it shouldn't be necessary (and jsrrdgraph didn't support it). This broke graphs rendered by rrdtool with files including a colon in it's name. Hopefully this is fixed now by double escaping them. Reported-by: Poil <poil@quake.fr> (https://github.com/pommi/CGP/issues/20)
* type/default: dont include y-axis description (-v option) when not setPim van den Berg2013-07-031-1/+2
| | | | It caused an "Unknown argument: undefined" error when using canvas.
* remove dependency on mod_rewrite for rrd.phpPim van den Berg2013-05-201-1/+1
| | | | Use $_SERVER['PATH_INFO'] instead.
* add config option for showing smooth (curved) graphsPim van den Berg2013-05-181-0/+4
|
* type/default: add missing initial variable definitionsPim van den Berg2013-05-181-0/+2
|
* add support for graphing I/O using the negative X-axisPim van den Berg2013-05-182-5/+12
|
* integrate jsrrdgraph in CGPPim van den Berg2013-05-184-53/+77
|
* move width/heigth from plugins to type __constructPim van den Berg2013-05-131-0/+4
|
* type: stick to the rrdgraph time specificationPim van den Berg2013-05-101-1/+1
| | | | Reference: http://rrdtool.mirror.graemef.net/doc/rrdfetch.en.html#IAT_STYLE_TIME_SPECIFICATION
* type/default: resolve division by zero warningPim van den Berg2012-12-211-1/+1
| | | | Reported-by: Philipp Hellmich <Philipp.Hellmich@Bertelsmann.de>
* type: resolve undefined variable $c and $raw noticesPim van den Berg2012-12-213-3/+3
| | | | Reported-by: Philipp Hellmich <Philipp.Hellmich@Bertelsmann.de>
* type: escape colons in legend namesPim van den Berg2012-12-164-4/+4
| | | | | | | This problem showed up with IPv6 addresses in the NTP plugin. Forgotten in commit: v0.3-51-g330c94f [type: escape colons in filenames used in rrd commandline]
* type: add debug option "cmd" create a commandline rrdtool commandPim van den Berg2012-12-161-0/+6
|
* explicitely defined undefined variablesMatthias Viehweger2012-10-202-0/+6
| | | | this should keep the error.log clean
* change whitespace, indentation or line-breaksMatthias Viehweger2012-10-201-1/+1
|
* add support for varnish plugin categoriesPim van den Berg2012-09-071-3/+9
| | | | | | | | | | | | | | | 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>
* type: add scale support to default/generic stacked typesPim van den Berg2012-08-102-6/+32
|
* type/GenericIO: only use raw totals when no scale is set (update)Pim van den Berg2012-08-101-1/+1
| | | | | This is a correction to commit: v0.3-56-g69bea69 [only use raw totals when no scale is set]
* type/GenericIO: only use raw totals when no scale is setPim van den Berg2012-07-151-1/+2
| | | | | | | | When scale is set, the total will be set twice (also in part below), which will result in this error: "ERROR: Attempting to reuse 'tot_98574167'" Bug introduced in commit: v0.3-25-g19ed46a [type/GenericIO: add total calculations in IO graphs]
* type: escape colons in filenames used in rrd commandlinePim van den Berg2011-08-274-11/+15
| | | | | | | A colon ':' in a legend argument will mark the end of the legend: http://oss.oetiker.ch/rrdtool/doc/rrdgraph_graph.en.html#INOTES_on_legend_arguments Reported-by: Benjamin Dupuis <poil@quake.fr>
* type/Default: dont use t as ti when no ti is setPim van den Berg2011-06-261-1/+1
| | | | Use 'value' instead.
* resolve php noticesKarol Nowacki2011-04-211-13/+13
| | | | Including a lot of undefined $_GET values.
* use tinstance for legend label when data_sources is not set by pluginPim van den Berg2011-04-101-2/+7
|
* type/GenericIO: add total calculations in IO graphsyur2011-04-051-1/+4
|