newrelic_platform_plugins icon indicating copy to clipboard operation
newrelic_platform_plugins copied to clipboard

SSL Error while getting csv file from haproxy stats

Open corehook opened this issue 12 years ago • 1 comments

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 ?

corehook avatar Sep 04 '13 05:09 corehook

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.

cormacj avatar Oct 15 '13 03:10 cormacj