[collectd] Curl output value threshold

Florian Forster octo at verplant.org
Tue Mar 9 23:13:09 CET 2010

Hi Jeremy,

On Mon, Mar 08, 2010 at 11:27:25AM -0600, Jeremy Hanna wrote:
> 		<Match>
> 			Regex "Live Nodes</a>.*?([0-9]+)<tr"
> 			DSType "CounterSet"
> 			Type "counter"
> 			Instance "live-nodes"
> 		</Match>

this looks like the information you're collecting here is "the number of
nodes currently running". That's a number that can go up when a host is
added and down if one is removed.

For this kind of data you should use a GAUGE based data set, for example
the data set named "gauge". The "DSType" option should then be set to
one of the "Gauge*" settings, for example "GaugeAverage".

I'm also surprised the regular expression compiles and returns anything:
We're using the "Extended POSIX Regular Expressions", and as far as I
know they don't support the non-greedy "*?" operator. The regex(7)
manual page should be able to tell you in detail.

Florian octo Forster
Hacker in training
GnuPG: 0x91523C3D
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://mailman.verplant.org/pipermail/collectd/attachments/20100309/f84e10f3/attachment.pgp 

More information about the collectd mailing list