<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";
        mso-fareast-language:EN-US;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:#0563C1;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:#954F72;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri","sans-serif";
        mso-fareast-language:EN-US;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-IN" link="#0563C1" vlink="#954F72">
<div class="WordSection1">
<p class="MsoNormal">Hi,<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">I have been trying to make use of the “match_regex” to filter out the individual CPU metrics. I am looking to use the Aggregated CPU metrics instead. The metrics then are to be written to a RabbitMQ queue. The filtering out of individual
 CPU and the Aggregation of CPU metrics work fine. But, the “match_regex”seems to be unable to dispatch values to the RabbitMQ queue.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">This is how my “match_regex”plugin looks like :-<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">LoadPlugin "match_regex"<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><Chain "PostCache"><o:p></o:p></p>
<p class="MsoNormal">  <Rule> # Send "cpu" values to the aggregation plugin.<o:p></o:p></p>
<p class="MsoNormal">    <Match regex><o:p></o:p></p>
<p class="MsoNormal">      Plugin "^cpu$"<o:p></o:p></p>
<p class="MsoNormal">      PluginInstance "^[0-9]+$"<o:p></o:p></p>
<p class="MsoNormal">    </Match><o:p></o:p></p>
<p class="MsoNormal">    <Target write><o:p></o:p></p>
<p class="MsoNormal">      Plugin "aggregation"<o:p></o:p></p>
<p class="MsoNormal">    </Target><o:p></o:p></p>
<p class="MsoNormal">    Target stop<o:p></o:p></p>
<p class="MsoNormal">  </Rule><o:p></o:p></p>
<p class="MsoNormal">  <Target write><o:p></o:p></p>
<p class="MsoNormal">    Plugin "amqp"<o:p></o:p></p>
<p class="MsoNormal">    Plugin "csv"<o:p></o:p></p>
<p class="MsoNormal">  </Target><o:p></o:p></p>
<p class="MsoNormal"></Chain><o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">The corresponding “aggregation.conf” and “amqp.conf” lie in “/opt/collectd/etc/collectd.d/”. The “Include” directive in “/opt/collectd/etc/collectd.conf” includes all the *.conf files in “/opt/collectd/etc/collectd.d/”. I switched on debug
 logs and this is all that I see :-<o:p></o:p></p>
<p class="MsoNormal">………………………<o:p></o:p></p>
<p class="MsoNormal">[2014-11-06 16:49:30] fc_process_chain (PostCache): Executing the default targets.<o:p></o:p></p>
<p class="MsoNormal">[2014-11-06 16:49:30] Filter subsystem: Built-in target `write': Dispatching value to the `amqp' plugin failed with status 2.<o:p></o:p></p>
<p class="MsoNormal">[2014-11-06 16:49:30] plugin: plugin_write: Writing values via csv.<o:p></o:p></p>
<p class="MsoNormal">………………………<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">The collectd version is 5.4.1 and the RabbitMQ version is 3.0.2.  Any ideas on why the dispatch to amqp fails ?<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Thanx !<o:p></o:p></p>
<p class="MsoNormal">- mahesh.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
</body>
</html>