diff options
author | Pim van den Berg | 2012-09-07 13:48:21 +0200 |
---|---|---|
committer | Pim van den Berg | 2012-09-07 14:09:34 +0200 |
commit | e3f1cc22b6f392ba808034ef58e3b7946e3f0ba8 (patch) | |
tree | dd7c34e42c0a25b0e2ca47c55a3e3cf9c58875b3 /inc/functions.inc.php | |
parent | plugin/snmp: add support for if_octets (diff) | |
download | apt-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.php | 1 |
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; |