aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/inc/functions.inc.php
diff options
context:
space:
mode:
authorPim van den Berg2012-09-07 13:48:21 +0200
committerPim van den Berg2012-09-07 14:09:34 +0200
commite3f1cc22b6f392ba808034ef58e3b7946e3f0ba8 (patch)
treedd7c34e42c0a25b0e2ca47c55a3e3cf9c58875b3 /inc/functions.inc.php
parentplugin/snmp: add support for if_octets (diff)
downloadapt-panopticon_cgp-e3f1cc22b6f392ba808034ef58e3b7946e3f0ba8.zip
apt-panopticon_cgp-e3f1cc22b6f392ba808034ef58e3b7946e3f0ba8.tar.gz
apt-panopticon_cgp-e3f1cc22b6f392ba808034ef58e3b7946e3f0ba8.tar.bz2
apt-panopticon_cgp-e3f1cc22b6f392ba808034ef58e3b7946e3f0ba8.tar.xz
add support for varnish plugin categories
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>
Diffstat (limited to '')
-rw-r--r--inc/functions.inc.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/inc/functions.inc.php b/inc/functions.inc.php
index 39f1cd0..a72a589 100644
--- a/inc/functions.inc.php
+++ b/inc/functions.inc.php
@@ -15,6 +15,7 @@ function validate_get($value, $type) {
15 return NULL; 15 return NULL;
16 break; 16 break;
17 case 'plugin': 17 case 'plugin':
18 case 'category':
18 case 'type': 19 case 'type':
19 if (!preg_match('/^\w+$/u', $value)) 20 if (!preg_match('/^\w+$/u', $value))
20 return NULL; 21 return NULL;