aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/plugin/cpu.json (follow)
Commit message (Collapse)AuthorAgeFilesLines
* move " on <HOSTNAME>" suffix in graph title to JSONƁukasz Kostka2014-08-251-1/+1
| | | | Closes #101
* Use a more secure command line building methodPeter Wu2014-07-201-1/+1
| | | | | | | | | | | | | | | | | | | 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.
* graph.php: use JSON plugins instead of including PHP plugin filesPim van den Berg2014-05-121-0/+43
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.