summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: d14e0f7)
raw | patch | inline | side by side (parent: d14e0f7)
author | Florian Forster <octo@leeloo.lan.home.verplant.org> | |
Sat, 12 Jun 2010 10:20:38 +0000 (12:20 +0200) | ||
committer | Florian Forster <octo@leeloo.lan.home.verplant.org> | |
Sat, 12 Jun 2010 10:20:38 +0000 (12:20 +0200) |
src/varnish.c | patch | blob | history |
diff --git a/src/varnish.c b/src/varnish.c
index 33c57ec9040170dfc95e4645442b9d5d26e4abce..dc921116a6f9317e503a6e8773aa5fd215db75de 100644 (file)
--- a/src/varnish.c
+++ b/src/varnish.c
if (conf == NULL)
return (EINVAL);
- conf->collect_cache = 1;
- conf->collect_backend = 1;
+ conf->collect_backend = 1;
+ conf->collect_cache = 1;
conf->collect_connections = 1;
- conf->collect_shm = 1;
+ conf->collect_esi = 0;
+ conf->collect_fetch = 0;
+ conf->collect_hcb = 0;
+ conf->collect_shm = 1;
+ conf->collect_sm = 0;
+ conf->collect_sma = 0;
+ conf->collect_sms = 0;
+ conf->collect_totals = 0;
return (0);
} /* }}} int varnish_config_apply_default */
memset (conf, 0, sizeof (*conf));
conf->instance = NULL;
+ varnish_config_apply_default (conf);
+
if (ci->values_num == 1)
{
int status;
&& !conf->collect_sm
&& !conf->collect_totals)
{
- varnish_config_apply_default (conf);
+ WARNING ("Varnish plugin: No metric has been configured for "
+ "instance \"%s\". Disabling this instance.",
+ (conf->instance == NULL) ? "localhost" : conf->instance);
+ return (EINVAL);
}
ssnprintf (callback_name, sizeof (callback_name), "varnish/%s",