From 02c3a30562720ce1433e0f05eda37ab85d97106a Mon Sep 17 00:00:00 2001 From: Florian Forster Date: Thu, 10 Jun 2010 14:42:40 +0200 Subject: [PATCH] Varnish plugin: Use the more common "Collect" prefix for config options. --- src/collectd.conf.in | 20 ++++++++++---------- src/varnish.c | 20 ++++++++++---------- 2 files changed, 20 insertions(+), 20 deletions(-) diff --git a/src/collectd.conf.in b/src/collectd.conf.in index eb2a4e85..10ec9807 100644 --- a/src/collectd.conf.in +++ b/src/collectd.conf.in @@ -853,7 +853,7 @@ # - cache hits # - cache misses # - cache hits for pass -# MonitorCache true +# CollectCache true # # Will monitor: # - backend connection : success @@ -864,13 +864,13 @@ # - backend connection : was closed # - backend connection : recycles # - backend connection : unused -# MonitorBackend true +# CollectBackend true # # Will monitor : # - client connections accepted # - connection dropped # - client requests received -# MonitorConnections true +# CollectConnections true # # Will monitor: # - SHM records @@ -878,12 +878,12 @@ # - SHM flushes due to overflow # - SHM MTX contention # - SHM cycles through buffer -# MonitorSHM true +# CollectSHM true # # Will monitor: # - Objects ESI parsed # - ESI parse errors -# MonitorESI false +# CollectESI false # # Will monitor: # - fetch head @@ -895,13 +895,13 @@ # - fetch pre HTTP/1.1 closed # - fetch zero length # - fetch failed -# MonitorFetch false +# CollectFetch false # # Will monitor: # - HCB lookups without lock # - HCB lookups with lock # - HCB inserts -# MonitorHCB false +# CollectHCB false # # Will monitor: # - SMA allocator requests @@ -909,7 +909,7 @@ # - SMA outstanding bytes # - SMA bytes allocated # - SMA bytes free -# MonitorSMA false +# CollectSMA false # # Will monitor: # - SMS allocator requests @@ -917,14 +917,14 @@ # - SMS outstanding bytes # - SMS bytes allocated # - SMS bytes freed -# MonitorSMS false +# CollectSMS false # # Will monitor: # - allocator requests # - outstanding allocations # - bytes allocated # - bytes free -# MonitorSM false +# CollectSM false # # diff --git a/src/varnish.c b/src/varnish.c index e62bb99a..f7334900 100644 --- a/src/varnish.c +++ b/src/varnish.c @@ -367,25 +367,25 @@ static int varnish_config_instance (const oconfig_item_t *ci) /* {{{ */ { oconfig_item_t *child = ci->children + i; - if (strcasecmp ("MonitorCache", child->key) == 0) + if (strcasecmp ("CollectCache", child->key) == 0) cf_util_get_boolean (child, &conf->monitor_cache); - else if (strcasecmp ("MonitorConnections", child->key) == 0) + else if (strcasecmp ("CollectConnections", child->key) == 0) cf_util_get_boolean (child, &conf->monitor_connections); - else if (strcasecmp ("MonitorESI", child->key) == 0) + else if (strcasecmp ("CollectESI", child->key) == 0) cf_util_get_boolean (child, &conf->monitor_esi); - else if (strcasecmp ("MonitorBackend", child->key) == 0) + else if (strcasecmp ("CollectBackend", child->key) == 0) cf_util_get_boolean (child, &conf->monitor_backend); - else if (strcasecmp ("MonitorFetch", child->key) == 0) + else if (strcasecmp ("CollectFetch", child->key) == 0) cf_util_get_boolean (child, &conf->monitor_fetch); - else if (strcasecmp ("MonitorHCB", child->key) == 0) + else if (strcasecmp ("CollectHCB", child->key) == 0) cf_util_get_boolean (child, &conf->monitor_hcb); - else if (strcasecmp ("MonitorSHM", child->key) == 0) + else if (strcasecmp ("CollectSHM", child->key) == 0) cf_util_get_boolean (child, &conf->monitor_shm); - else if (strcasecmp ("MonitorSMA", child->key) == 0) + else if (strcasecmp ("CollectSMA", child->key) == 0) cf_util_get_boolean (child, &conf->monitor_sma); - else if (strcasecmp ("MonitorSMS", child->key) == 0) + else if (strcasecmp ("CollectSMS", child->key) == 0) cf_util_get_boolean (child, &conf->monitor_sms); - else if (strcasecmp ("MonitorSM", child->key) == 0) + else if (strcasecmp ("CollectSM", child->key) == 0) cf_util_get_boolean (child, &conf->monitor_sm); else { -- 2.11.0