aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/type/GenericIO.class.php (follow)
Commit message (Collapse)AuthorAgeFilesLines
* GenericIO: Fix negative_io for multiple instancesAlex Hermann2018-02-161-5/+5
| | | | | When multiple instances are in one graph, every odd source must be negated, not just the first.
* Don't show overlap AREA on Generic IO graphs when negative_io is setStephen Kent2015-06-221-6/+8
|
* type/GenericIO: in case of negative_io draw percentile line also on the ↵Pim van den Berg2015-05-281-1/+5
| | | | | | negative y-axis Closes #119
* Remove from all files the ending php tagFrançois LASSERRE2014-07-231-2/+0
|
* Use a more secure command line building methodPeter Wu2014-07-201-10/+10
| | | | | | | | | | | | | | | | | | | Previously, a command is built by string concatenation. Here, the distinction between a value and multiple params got lost. Solve this by using an array for shell arguments. As the escaping is now removed from the `rrd_gen_graph` function, the canvas style needs to manually add those quotes to make the JS code still work. That only supports double-quotes, so hopefully nobody creates a name with a double quote as that would break the fragile JS command line parser. Separate the rrdtool options from the rrdtool graph command to make the `$graph_type == 'canvas'` option work (it would otherwise not understand the `rrdtool graph - -a PNG` option). Merge the SVG and PNG cases as they are the same except for the Content-Type header. Fix a missing html escape in a debug style.
* type/genericio: apply percentile on scaled valuePim van den Berg2014-07-051-1/+1
|
* add percentile support to network traffic graphsPim van den Berg2014-06-241-0/+11
| | | | | | | Set $CONFIG['percentile'] to a number and a XXth percentile line + legend will be added to all network traffic (if_octets) graphs. Closes #81
* rename ds_names and dsname to legendPim van den Berg2014-05-031-2/+2
| | | | This had nothing to do with an RRD data source.
* type: move generic functions to base classPim van den Berg2014-05-031-2/+2
|
* Revert "type: fix undefined index in ds_names[$source] before empty check"Pim van den Berg2013-10-091-1/+1
| | | | | | | | | | 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-071-1/+1
|
* type: use empty to access ds_namesBenoît Monin2013-08-311-1/+1
| | | | | Fix some potential undefined index errors by using the empty function to access ds_names in type other than default.
* add support for graphing I/O using the negative X-axisPim van den Berg2013-05-181-4/+10
|
* integrate jsrrdgraph in CGPPim van den Berg2013-05-181-9/+9
|
* type: resolve undefined variable $c and $raw noticesPim van den Berg2012-12-211-0/+1
| | | | Reported-by: Philipp Hellmich <Philipp.Hellmich@Bertelsmann.de>
* type: escape colons in legend namesPim van den Berg2012-12-161-1/+1
| | | | | | | 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/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-271-3/+3
| | | | | | | 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/GenericIO: add total calculations in IO graphsyur2011-04-051-1/+4
|
* utf8 filename support for all typesPim van den Berg2010-03-011-13/+13
| | | | | Types GenenericIO and GenericStacked were not included in commit: 596dd7d414 [make rrdfiles using utf8 and spaces work]
* rewrite of type classesPim van den Berg2009-12-311-21/+30
| | | | | | | | | | | | | | | | | 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.
* replace duplicate code by function rrd_optionsPim van den Berg2009-12-281-7/+1
|
* initial import of cgpPim van den Berg2009-09-201-0/+59
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.