<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, &quot;Martin B. Smith&quot; &lt;<a href="mailto:smithmb@ufl.edu">smithmb@ufl.edu</a>&gt; wrote:<br type="attribution">&gt; Howdy there folks,<br>&gt; <br>&gt; I have the following text/plain output from a CGI script:<br>
&gt; <br>&gt; active_users_count|3|3|<br>&gt; active_users_5mins|0|0|<br>&gt; active_users_30mins|1|1|<br>&gt; active_users_60mins|1|1|<br>&gt; <br>&gt; I&#39;m configuring the curl plugin to read them:<br>&gt; <br>&gt; LoadPlugin curl<br>
&gt; &lt;Plugin curl&gt;<br>&gt; &lt;Page &quot;my_users&quot;&gt;<br>&gt;    URL &quot;<a href="http://localhost/cgi-script">http://localhost/cgi-script</a>&quot;<br>&gt;    &lt;Match&gt;<br>&gt;      Regex &quot;active_users_count\|([0-9]+)&quot;<br>
&gt;      DSType &quot;GaugeLast&quot;<br>&gt;      Type &quot;my_users&quot;<br>&gt;      Instance &quot;active_users_count&quot;<br>&gt;    &lt;/Match&gt;<br>&gt; &lt;/Page&gt;<br>&gt; &lt;/Plugin&gt;<br>&gt; <br>&gt; In types.db, I&#39;ve got:<br>
&gt; my_users value:GAUGE:0:65535<br>&gt; <br>&gt; Am I misunderstanding the amount of escaping I need to do for a vertical <br>&gt; pipe in my configuration? Is the Regex match supposed to be multiline?<br>&gt; <br>&gt; I&#39;ve tried to match on &quot;^active_users_count\|([0-9]+)$&quot; too.<br>
&gt; <br>&gt; Thanks in advance,<br>&gt; -- <br>&gt; Martin B. Smith<br>&gt; <a href="mailto:smithmb@ufl.edu">smithmb@ufl.edu</a> - (352) 273-1374<br>&gt; CNS/Open Systems Group<br>&gt; University of Florida<br>&gt; <br></div>