<div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote">On Fri, May 30, 2014 at 9:33 AM, Otis Gospodnetic <span dir="ltr"><<a href="mailto:otis.gospodnetic@gmail.com" target="_blank">otis.gospodnetic@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi Tien,<div class="gmail_extra"><br clear="all"><div>I'm confused.... please see below:</div><br><div class="gmail_quote">
<div class="">On Thu, May 29, 2014 at 9:45 PM, Tien Nguyen Manh <span dir="ltr"><<a href="mailto:tien.nguyenmanh@sematext.com" target="_blank">tien.nguyenmanh@sematext.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr">Thank Toni,<div><br></div><div>I finally make it work, but with one of the following changes</div>

<div>1. Add ServerAlias localhost to my virtualhost config OR</div><div>2. Use serverUrl <a href="https://127.0.0.1/server-status" target="_blank">https://127.0.0.1/server-status</a>.</div></div></blockquote><div><br></div>

</div><div>So you CAN get Apache stats with Collectd using the above URL after you added "ServerAlias localhost"?</div><div><br></div><div>And what about WITHOUT "ServerAlias localhost"?</div></div></div>
</div></blockquote><div>Without ServerAlias localhost in apache config, collectd can't start, it stop by segmentation fault error.</div><div><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><div class=""><div><br></div>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr"><div>Do you have ServerAlias localhost in your config? if possible could you sent your config?</div>

<div><br></div><div>I think there are something wrong in collectd, because without above change, i still can see server-status page in my browser (chrome, firefox) as well as in lynx or culr -k</div></div></blockquote><div>

<br></div></div><div>Are you asking why you can get to Apache stats without the above changes, but not with Collectd?<br></div></div></div></div></blockquote><div>Yes, i, lynx and curl can get to that but not collectd?</div>
<div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><div>In other words, why you had to add the above changes to Apache config before Collectd could get to the Apache stats?</div>
</div></div></div></blockquote><div>Yes, i hope collectd should get it just as curl -k or lynx command can do without any change in Apache config.</div><div><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">
<div><br></div><div>Just trying to clarify the questions.  I'm not sure what the answer is.  Maybe Toni or one of the other Collectd experts will know.</div><div><div class="h5"><div><br></div><div><div>Otis<br>--<br>
Performance Monitoring * Log Analytics * Search Analytics<br>
Solr & Elasticsearch Support * <a href="http://sematext.com/" target="_blank">http://sematext.com/</a></div></div><div><br></div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">

<div><div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, May 29, 2014 at 5:56 PM, Toni Moreno <span dir="ltr"><<a href="mailto:toni.moreno@gmail.com" target="_blank">toni.moreno@gmail.com</a>></span> wrote:<br>


<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr">I'm using this config in the apache plugin and I've added to the collectd distribution the ca-bundle.crt contained in openssl package ( located at /etc/pki/tls/certs/ca-bundle.crt in RHEL 5.6)<div>


<br>
</div><div><div>  <Instance "local_443"> </div><div>    URL "<a href="https://localhost:443/server-status?auto" target="_blank">https://localhost:443/server-status?auto</a>"</div><div>    VerifyPeer false</div>


<div>
    VerifyHost false</div><div>    CACert "/opt/collectd/etc/ca-bundle.crt"</div><div>  </Instance></div></div><div><br></div><div>I hope this issue can help you.</div><div><br></div></div><div class="gmail_extra">



<br><br><div class="gmail_quote">2014-05-29 12:32 GMT+02:00 Tien Nguyen Manh <span dir="ltr"><<a href="mailto:tien.nguyenmanh@sematext.com" target="_blank">tien.nguyenmanh@sematext.com</a>></span>:<div><div>
<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
<div dir="ltr">Hi,<div><br></div><div>I am using collectd 5.1.0 on ubuntu 13.10, libgnutls-dev 2.12.23-1ubuntu4.2</div><div><br></div><div>I found one error in syslog while collectd try to conntect to <a href="https://localhost/server-status" target="_blank">https://localhost/server-status</a></div>




<div><div><br></div><div><i>May 28 09:02:52 localhost kernel: [ 2140.169515] collectd[22500]: segfault at 0 ip 00007f5622e09b99 sp 00007f561f447920 error 4 in libgnutls.so.26.22.6[7f5622d95000+b6000]</i></div></div><div>



<br>
</div><div>I attached the output of collectd trace. At the end of that trace, it connect to some resource but got Timeout error several times, then it stop.</div><div><br></div><div>Regards,</div><div>Tien</div></div><div>



<div><div class="gmail_extra">
<br><br><div class="gmail_quote">On Thu, May 29, 2014 at 10:34 AM, Otis Gospodnetic <span dir="ltr"><<a href="mailto:otis.gospodnetic@gmail.com" target="_blank">otis.gospodnetic@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">




<div dir="ltr">Hi,<div><br></div><div>Which version of Collectd?  OS?  GNU TLS?<div>Any errors in Collectd log?</div><div>What about running Collectd with strace, does that show anything?<br><div class="gmail_extra"><br clear="all">






<div>Otis<br>--<br>Performance Monitoring * Log Analytics * Search Analytics<br>Solr & Elasticsearch Support * <a href="http://sematext.com/" target="_blank">http://sematext.com/</a></div>
<br><br><div class="gmail_quote"><div><div>On Tue, May 27, 2014 at 10:50 PM, Tien Nguyen Manh <span dir="ltr"><<a href="mailto:tien.nguyenmanh@sematext.com" target="_blank">tien.nguyenmanh@sematext.com</a>></span> wrote:<br>






</div></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div><div><div dir="ltr">Hello,<div><br></div>

<div>I have issue config Collectd Apache plugin for Apache running on https with status page</div>




<div><a href="https://localhost/server-status" target="_blank">https://localhost/server-status</a></div>
<div><br></div><div>Here is my collectd config part for Apache plugin</div><div><br></div><div><div>LoadPlugin apache</div><div><Plugin "apache"></div><div>  <Instance "default"></div><div>







    URL "<a href="https://localhost/server-status?auto" target="_blank">https://localhost/server-status?auto</a>"</div><div>    #User "www-user"</div><div>    #Password "secret"</div><div>    VerifyPeer false</div>







<div>    VerifyHost false</div><div>    # CACert "/etc/ssl/certs/ssl-cert-snakeoil.pem"</div><div>    #Server "apache"</div><div>  </Instance></div><div></Plugin></div></div><div><br></div>







<div>Collectd can't access Apache server-status page, there are no logs for apache, while it still produce logs for CPU, mem, ...</div><div><br></div><div>I tested fetching status page with curl successfully by command </div>







<div><br></div><div>curl -k <a href="https://localhost/server-status" target="_blank">https://localhost/server-status</a></div><div><div>Total Accesses: 2<br></div><div>Total kBytes: 5</div><div>CPULoad: .00501855</div><div>






Uptime: 4583</div>
<div>ReqPerSec: .000436395</div><div>BytesPerSec: 1.11717</div><div>BytesPerReq: 2560</div><div>BusyWorkers: 2</div></div><div><br></div><div>What is wrong with my collectd config?</div><div>is -k option in curl equivalent to VerifyPeer false in collectd-apach config?</div>







<div><br></div><div>Thanks,</div><div>Tien</div><div><br></div></div>
<br></div></div>_______________________________________________<br>
collectd mailing list<br>
<a href="mailto:collectd@verplant.org" target="_blank">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></div></div></div></div>
<br>_______________________________________________<br>
collectd mailing list<br>
<a href="mailto:collectd@verplant.org" target="_blank">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></div>
</div></div><br>_______________________________________________<br>
collectd mailing list<br>
<a href="mailto:collectd@verplant.org" target="_blank">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></div></div><br><br clear="all"><div><br></div>-- <br><p align="right"><font face="Verdana, Geneva, Arial, Sans-serif">Att</font></p>
<p align="right"><font face="Verdana, Geneva, Arial, Sans-serif">Toni Moreno</font></p>
<p align="right"><font face="Verdana, Geneva, Arial, Sans-serif">699706656</font></p><img src="http://graphics.hotmail.com/greypixel.gif" height="2" vspace="9" width="100%"><br>  
<p align="right"><em>Si no quieres perderte en el olvido tan pronto como estés muerto y corrompido, </em></p>
<p align="right"><em>escribe cosas dignas de leerse, o haz cosas dignas de escribirse.</em></p>
<p align="right"> </p>
<p align="right"><strong><em>Benjamin Franklin</em></strong> <br></p>
</div>
</blockquote></div><br></div>
</div></div><br>_______________________________________________<br>
collectd mailing list<br>
<a href="mailto:collectd@verplant.org" target="_blank">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></div></div><br></div></div>
</blockquote></div><br></div></div>