Hi,

I've been trying curl-plugin to collectd a few metrics from a webservice.
When there is no activity the webservice just return a 'nil' value and the
regex doest't match. Is there any option to curl-plugin to return a default
value if the regex doestn't match?

My config:

 <Page "worker">
    URL "http://localhost:85/metric/provisiona_fail/?flush=yes";
    <Match>
      Regex "^([0-9]+)$"
      DSType "GaugeLast"
      Type "gauge"
       Instance "spawned_fail"
    </Match>
  </Page>

This is what it returns when there is no activity:

curl http://localhost:85/metric/spawned_fail/
nil

Thanks.
_______________________________________________
collectd mailing list
[email protected]
http://mailman.verplant.org/listinfo/collectd

Reply via email to