} /* }}} int varnish_submit_derive */
static void varnish_monitor (const user_config_t *conf, /* {{{ */
- c_varnish_stats_t *stats)
+ const c_varnish_stats_t *stats)
{
if (conf->collect_cache)
{
vd = VSM_New();
VSC_Setup(vd);
+ if (VSM_n_Arg(vd, conf->instance) == -1)
+ {
+ ERROR ("Varnish plugin : unable to load statistics from instance");
+ return (-1);
+ }
if (VSC_Open (vd, /* diag = */ 1))
{
ERROR ("varnish plugin: Unable to load statistics.");