On Thu, Mar 18, 2010 at 4:56 PM, Hrisheekesh Kale <span dir="ltr"><<a href="mailto:hrisheekesh_kale@persistent.co.in">hrisheekesh_kale@persistent.co.in</a>></span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div link="blue" vlink="purple" lang="EN-US">
<div>
<p class="MsoNormal"><font face="Trebuchet MS" size="2"><span style="font-size: 10pt; font-family: "Trebuchet MS";">Hi,</span></font></p>
<p class="MsoNormal"><font face="Trebuchet MS" size="2"><span style="font-size: 10pt; font-family: "Trebuchet MS";"> </span></font></p>
<p class="MsoNormal"><font face="Trebuchet MS" size="2"><span style="font-size: 10pt; font-family: "Trebuchet MS";">I am trying to configure Jcollectd so that I
get the statistics from Apache Tomcat server into a collectd instance which is
running as a server.</span></font></p>
<p class="MsoNormal"><font face="Trebuchet MS" size="2"><span style="font-size: 10pt; font-family: "Trebuchet MS";">I followed the steps mentioned in Jcollectd
document (<a href="http://support.hyperic.com/display/hypcomm/jcollectd" target="_blank">http://support.hyperic.com/display/hypcomm/jcollectd</a>)</span></font></p>
<p class="MsoNormal"><font face="Trebuchet MS" size="2"><span style="font-size: 10pt; font-family: "Trebuchet MS";">I could not get it to work successfully. I found
that the configuration steps in the document were not very detailed.</span></font></p>
<p class="MsoNormal"><font face="Trebuchet MS" size="2"><span style="font-size: 10pt; font-family: "Trebuchet MS";">I have some questions:</span></font></p>
<p class="MsoNormal"><font face="Trebuchet MS" size="2"><span style="font-size: 10pt; font-family: "Trebuchet MS";">1. I am trying to configure Jcollectd in
sender mode i.e. I need to collect the statistics from Tomcat into my collectd.
Does collect sever have to be configured in Multicast mode for it?</span></font> <font face="Trebuchet MS" size="2"><span style="font-size: 10pt; font-family: "Trebuchet MS";">Can it also
work with unicast mode?</span></font></p></div></div></blockquote><div>Yes, I have got it working in unicast mode. IMO, as far as tomcat (client) is concerned it doesn't matter whether collectd is in unicast mode or multicast mode.<br>
</div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div link="blue" vlink="purple" lang="EN-US"><div>
<p class="MsoNormal"><font face="Trebuchet MS" size="2"><span style="font-size: 10pt; font-family: "Trebuchet MS";"> </span></font></p>
<p class="MsoNormal"><font face="Trebuchet MS" size="2"><span style="font-size: 10pt; font-family: "Trebuchet MS";">2. The document mentions following steps for
Tomcat configuration:</span></font></p>
<pre><code><font face="Courier New" size="2"><span style="font-size: 10pt;"> export CATALINA_OPTS="-Djcd.instance=hudson -Djcd.dest=udp://<a href="http://10.1.0.102" target="_blank">10.1.0.102</a> -Djcd.tmpl=javalang,tomcat -javaagent:collectd.jar"</span></font></code></pre>
<pre><code><font face="Courier New" size="2"><span style="font-size: 10pt;"> ./bin/catalina.sh start</span></font></code></pre></div></div></blockquote><div>Double check your tomcat process to see if CATALINA_OPTS is set as expected. <br>
</div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div link="blue" vlink="purple" lang="EN-US"><div><pre><code><font face="Courier New" size="2"><span style="font-size: 10pt;"> Is this all that is required to make Tomcat send Mbeans to collectd?</span></font></code></pre>
</div></div></blockquote><div>Yes. Make sure that the jcd.dest is set correctly.<br></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div link="blue" vlink="purple" lang="EN-US">
<div><pre><code><font face="Courier New" size="2"><span style="font-size: 10pt;"> Where collectd.jar should be placed so that Tomcat will pick it up?</span></font></code></pre></div></div></blockquote><div>You need to tell tomcat where to look for the collectd.jar via -javaagent option. Do note that the javaagent option takes absolute path as well.<br>
<br>Regards<br>Amit<br></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div link="blue" vlink="purple" lang="EN-US"><div><pre><code><font face="Courier New" size="2"><span style="font-size: 10pt;"> </span></font></code></pre>
<pre><code><font face="Courier New" size="2"><span style="font-size: 10pt;">If someone has successfully done something like this, any details about the configuration steps are appreciated.</span></font></code></pre></div>
</div></blockquote><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div link="blue" vlink="purple" lang="EN-US"><div><pre><code><font face="Courier New" size="2"><span style="font-size: 10pt;"> </span></font></code></pre>
<pre><code><font face="Courier New" size="2"><span style="font-size: 10pt;">Thanks,</span></font></code></pre><pre><code><font face="Courier New" size="2"><span style="font-size: 10pt;">Hrisheekesh. </span></font></code></pre>
<p class="MsoNormal"><font face="Trebuchet MS" size="2"><span style="font-size: 10pt; font-family: "Trebuchet MS";"> </span></font></p>
</div>
<p>DISCLAIMER
==========
This e-mail may contain privileged and confidential information which is the property of Persistent Systems Ltd. It is intended only for the use of the individual or entity to which it is addressed. If you are not the intended recipient, you are not authorized to read, retain, copy, print, distribute or use this message. If you have received this communication in error, please notify the sender and delete all copies of this message. Persistent Systems Ltd. does not accept any liability for virus infected mails.</p>
</div>
<br>_______________________________________________<br>
collectd mailing list<br>
<a href="mailto:collectd@verplant.org">collectd@verplant.org</a><br>
<a href="http://mailman.verplant.org/listinfo/collectd" target="_blank">http://mailman.verplant.org/listinfo/collectd</a><br>
<br></blockquote></div><br>