railsware / newrelic_platform_plugins

MIT License
42 stars 66 forks source link

SSL Error while getting csv file from haproxy stats #21

Open corehook opened 10 years ago

corehook commented 10 years ago

Hi dudes! When i try to monitor HAproxy with this plugin i getting this error in console

root@development:~# newrelic_haproxy_agent run -v [2013-09-04 05:07:22 UTC] Agent Haproxy is at version 1.0.1 [2013-09-04 05:07:22 UTC] Agent Haproxy is at version 1.0.1 [2013-09-04 05:07:22 UTC] Error occurred in poll cycle: SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed [2013-09-04 05:07:22 UTC] Error occurred in poll cycle: SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed [2013-09-04 05:07:22 UTC] Gathered 0 statistics

How i can disable SSL cert checking ?

cormacj commented 10 years ago

If your HAproxy stats link is something like https://10.1.2.3/stats.html then a work around is to edit your /etc/hosts file to have the ip address linked to the hostname, eg 10.1.2.3 example.com

Where this causes me a headache is that I have several instances I want to monitor all using the same cert so we can DNS round robin. This would mean that I have to have several monitoring instances running - one per HAproxy instance.