Commit message (Collapse) | Author | Files | Lines | ||
---|---|---|---|---|---|
2015-06-21 | inc/html: remove continue statements to prevent from incomplete html | Pim van den Berg | 1 | -25/+23 | |
2015-05-25 | inc/functions: merge functions GET and validate_get | Pim van den Berg | 2 | -15/+53 | |
And make sure all input from $_GET variables are parsed and validated. | |||||
2015-05-25 | inc/functions: make type argument of validate_get function exactly the same ↵ | Pim van den Berg | 2 | -11/+11 | |
as $_GET value | |||||
2015-02-26 | inc/html: s/licence/license/ | Pim van den Berg | 1 | -1/+1 | |
Closes #117 | |||||
2014-12-14 | inc/collectd: vmem/vmpage_io should be split to multiple graphs per type ↵ | Pim van den Berg | 1 | -4/+5 | |
instance Closes #113 | |||||
2014-12-14 | Revert "make detail page accessible when using "canvas" graph_type" | Peter Wu | 2 | -18/+0 | |
This reverts commit 82d88098f4203cf7402d4faf5ad100cada70efaf. Breaks async rendering, see https://github.com/pommi/CGP/issues/106#issuecomment-66896905 | |||||
2014-12-14 | inc/html: include jquery from local source | Pim van den Berg | 1 | -1/+1 | |
So we don't depend on a remote source. | |||||
2014-12-13 | dashboard: showtime: load jquery + timeago.js when config is set | Pim van den Berg | 1 | -1/+7 | |
2014-12-13 | dashboard: make timeago dynamic using jquery + timeago | Pim van den Berg | 1 | -1/+4 | |
2014-12-13 | Adding option to show time since last update on dashboard. | David Severwright | 1 | -0/+13 | |
Closes #110 | |||||
2014-11-11 | make detail page accessible when using "canvas" graph_type | Pim van den Berg | 2 | -0/+18 | |
Closes #106 | |||||
2014-08-14 | inc/html: add deprecation message about collectd 4 | Pim van den Berg | 1 | -1/+12 | |
2014-08-02 | Merge (a)sync code, reformat CGP.js | Peter Wu | 1 | -10/+7 | |
Best viewed with `git diff -w`. Since CGP-sync.js and CGP-async.js are almost equal except for one function call, merge them into a single function. While at it, reformat CGP.js to expose a single namespace (`CGP`) which exports the symbol `drawAll`. Remove `alert()` and add a `console.error()` call instead. This is less intrustive to users (who will notice a broken graph anyway) and be more helpful for developers (who can examine the call trace in the Developer Console. Add `"use strict"` and use the standard four spaces as indent. Process the script through `js-beautify` which re-indented the code and added some spaces between operators. Replace double by single quotes for consistency. Rename `catch(e)` to `catch(ex)` to supress a jshint warning about IE8. | |||||
2014-07-25 | support php versions without json support and show a warning message | Pim van den Berg | 1 | -0/+13 | |
2014-07-24 | inc/collectd: get_host_rrd_files: filter non-plugin .rrd files | Pim van den Berg | 1 | -1/+4 | |
Closes #92 | |||||
2014-07-23 | Remove from all files the ending php tag | François LASSERRE | 2 | -4/+0 | |
2014-07-23 | Update html.inc.php | François LASSERRE | 1 | -6/+6 | |
Fix a link when no class selected. | |||||
2014-07-21 | Better x and y validation, report 400 on errors | Peter Wu | 1 | -1/+1 | |
Report 400 Bad Request on query errors instead of reporting 200 OK (which can be cached). Add some additional validation for the 'x' and 'y' parameters, to catch underflow (test with `x=-10` for example). Also fix a typo in the error message and include more details (the actual error). | |||||
2014-07-21 | Fix overly permissive hostname validation, fix host check | Peter Wu | 1 | -2/+2 | |
`[\w\W]` matches EVERYTHING. Validation failed. Also remove `\d` as that `\w` is a superset of it. Also check that the host parameter is actually non-empty, otherwise `collectd_plugins` will happily return results as the directory `$CONFIG['datadir'] . '/' . ''` trivially exists... | |||||
2014-07-20 | Escape file argument for rrd_info | Peter Wu | 1 | -2/+7 | |
Also init info_array in case the output is empty. | |||||
2014-07-20 | Fix type confusion | Peter Wu | 1 | -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. | |||||
2014-07-20 | Defensive programming: more urlencode/htmlentities | Peter Wu | 1 | -47/+51 | |
Make build_url return an URL, not HTML. This separates presentation from data. plugin_header's return value is unused, remove the unnecessary return. At places where `printf("<tag att='%s'>", $x);` is used, it is now converted to `printf("<tag att=\"%s\">", htmlentities($x));` since the single quote is not escaped by default by htmlentities. In case the canvas style is used, JS should use `textContent` instead of `innerHTML` to avoid reading `"` instead of `"`. Nobody (should) use(s) IE6 anymore, so it is a safe change. While at it, use the standard charset attribute of meta to specify the character set (UTF-8). | |||||
2014-06-28 | Use config time_range for canvas graphs | Vincent Brillault | 1 | -0/+1 | |
2014-06-28 | Keep the list of plugins sorted | Vincent Brillault | 1 | -0/+1 | |
2014-06-11 | Add support for multiple types db | Dao-hui Chen | 1 | -16/+23 | |
2014-05-14 | inc/html.inc.php: fix canvas graphs | Pim van den Berg | 1 | -1/+1 | |
Include graph.php instead of non-existing plugin/$plugin.php. | |||||
2014-05-12 | graph.php: use JSON plugins instead of including PHP plugin files | Pim van den Berg | 2 | -0/+211 | |
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. | |||||
2014-05-03 | move collectd_flush function to base class | Pim van den Berg | 2 | -66/+5 | |
2014-05-03 | inc: mv graphs_from_plugin, build_url functions to html.inc.php | Pim van den Berg | 2 | -70/+68 | |
They generate html. | |||||
2014-05-03 | inc/collectd: consistently return false instead of an empty array or false | Pim van den Berg | 1 | -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 | |||||
2014-04-15 | overview: disable showmem by default, add percent sign | Pim van den Berg | 1 | -25/+25 | |
And change all spaces to tabs. | |||||
2014-04-14 | overview: show used memory percentage | Bogdan Rădulescu | 1 | -1/+25 | |
2014-04-06 | overview: only calculate cores when config option showload is enabled | Pim van den Berg | 1 | -2/+2 | |
Closes: https://github.com/pommi/CGP/issues/60 | |||||
2014-03-23 | inc/functions.inc.php: rm trailing slash in base and resolve symlink | Pim van den Berg | 1 | -0/+5 | |
When there was a symlink in the path of $base, strpos($realpath, $base) would have always return false. Closes: https://github.com/pommi/CGP/pull/49 | |||||
2014-03-22 | add rrdcached flush support | Pim van den Berg | 1 | -31/+44 | |
2014-03-22 | inc/collectd.inc.php: use RegexIterator + strip $dir from result | Pim van den Berg | 1 | -8/+7 | |
2014-03-22 | inc/collectd.inc.php: replace glob by php5 iterators | Łukasz Kostka | 1 | -2/+23 | |
2014-02-10 | use & instead of & in html | Pim van den Berg | 2 | -5/+5 | |
2014-01-12 | Add a configuration option for sync/async choice for the canvas graphs | Vincent Brillault | 1 | -0/+11 | |
2013-12-29 | automatic page refresh support + config setting | Pim van den Berg | 1 | -0/+6 | |
Closes: https://github.com/pommi/CGP/pull/35 | |||||
2013-08-24 | inc/collectd.inc.php: typo | Pim van den Berg | 1 | -1/+1 | |
2013-08-24 | inc/collectd.inc.php: don't group type instances when snmp + if_octets | Pim van den Berg | 1 | -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 | |||||
2013-06-22 | add viewport meta tag for better experience on mobile devices | Pim van den Berg | 1 | -0/+1 | |
2013-06-22 | overview: add color to load averages | Pim van den Berg | 1 | -4/+11 | |
The load average number turns: * orange When the load is higher than the number of cpu cores. * red When the load is more than twice as high as the number of cpu cores. | |||||
2013-06-22 | start using fieldset + legend for showing data | Pim van den Berg | 1 | -3/+6 | |
2013-05-18 | integrate jsrrdgraph in CGP | Pim van den Berg | 3 | -6/+61 | |
2013-03-30 | rewrite some code of added overview_filter feature | Pim van den Berg | 1 | -7/+4 | |
Use less variables, less code. | |||||
2013-03-30 | add feature to show a subset of graphs from a plugin on overview page | Rohit Bhute | 1 | -1/+12 | |
2013-02-09 | inc/collectd.inc.php: remove . and .. from scandir before foreach | Pim van den Berg | 1 | -2/+2 | |
Reported-by: Reza (http://pommi.nethuis.nl/collectd-graph-panel-v0-3/#comment-26990) | |||||
2012-12-28 | remove arguments overview_plugins and other_plugins from plugins_list function | Pim van den Berg | 1 | -11/+24 | |
Those can be gathered within the function. |