From e3f1cc22b6f392ba808034ef58e3b7946e3f0ba8 Mon Sep 17 00:00:00 2001 From: Pim van den Berg Date: Fri, 7 Sep 2012 13:48:21 +0200 Subject: 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: --/- 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 --- inc/functions.inc.php | 1 + 1 file changed, 1 insertion(+) (limited to 'inc/functions.inc.php') 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) { return NULL; break; case 'plugin': + case 'category': case 'type': if (!preg_match('/^\w+$/u', $value)) return NULL; -- cgit v1.1