<p>When I saw regexp used in collectd configuration file (using the tail plugin) it was double quoted, ie \\ for \.</p>
<p>Sent from my phone. Please excuse my brevity.</p>
<div class="gmail_quote">On 16/02/2011 9:18 AM, "Martin B. Smith" <<a href="mailto:smithmb@ufl.edu">smithmb@ufl.edu</a>> wrote:<br type="attribution">> Howdy there folks,<br>> <br>> I have the following text/plain output from a CGI script:<br>
> <br>> active_users_count|3|3|<br>> active_users_5mins|0|0|<br>> active_users_30mins|1|1|<br>> active_users_60mins|1|1|<br>> <br>> I'm configuring the curl plugin to read them:<br>> <br>> LoadPlugin curl<br>
> <Plugin curl><br>> <Page "my_users"><br>> URL "<a href="http://localhost/cgi-script">http://localhost/cgi-script</a>"<br>> <Match><br>> Regex "active_users_count\|([0-9]+)"<br>
> DSType "GaugeLast"<br>> Type "my_users"<br>> Instance "active_users_count"<br>> </Match><br>> </Page><br>> </Plugin><br>> <br>> In types.db, I've got:<br>
> my_users value:GAUGE:0:65535<br>> <br>> Am I misunderstanding the amount of escaping I need to do for a vertical <br>> pipe in my configuration? Is the Regex match supposed to be multiline?<br>> <br>> I've tried to match on "^active_users_count\|([0-9]+)$" too.<br>
> <br>> Thanks in advance,<br>> -- <br>> Martin B. Smith<br>> <a href="mailto:smithmb@ufl.edu">smithmb@ufl.edu</a> - (352) 273-1374<br>> CNS/Open Systems Group<br>> University of Florida<br>> <br></div>