MeetMe / newrelic-plugin-agent

Multi-Plugin python-based Agent for NewRelic's Platform
BSD 3-Clause "New" or "Revised" License
425 stars 265 forks source link

SSL error starting new relic service using plugin MongoDB #538

Open beckercastro opened 7 years ago

beckercastro commented 7 years ago

Hi, i need some help...

When starting new relic service, i am receiving SSL error:

Error reporting stats: HTTPSConnectionPool(host='platform-api.newrelic.com', port=443): Max retries exceeded with url: /platform/v1/metrics (Caused by SSLError(SSLError(1, '_ssl.c:510: error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed'),))

I am using plugin MongoDB

narun4sk commented 6 years ago

Same here, I'm unable to send mongodb metrics to NewRelic:

INFO       2017-12-12 12:36:30,773 13993  MainProcess     MainThread newrelic_plugin_agent.agent                   start_plugin_polling      L263   : Enabling plugin: mongodb
INFO       2017-12-12 12:36:30,782 13993  MainProcess     MainThread newrelic_plugin_agent.plugins.base            finish                    L140   : MongoDB poll successful, completed in 0.01 seconds
INFO       2017-12-12 12:36:30,783 13993  MainProcess     MainThread newrelic_plugin_agent.agent                   send_components           L220   : Sending 56 metrics to NewRelic
ERROR      2017-12-12 12:36:30,986 13993  MainProcess     MainThread newrelic_plugin_agent.agent                   send_components           L235   : Error reporting stats: HTTPSConnectionPool(host='platform-api.newrelic.com', port=443): Max retries exceeded with url: /platform/v1/metrics (Caused by SSLError(SSLError(1, u'[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:581)'),))
INFO       2017-12-12 12:36:30,986 13993  MainProcess     MainThread newrelic_plugin_agent.agent                   process                   L133   : Stats processed in 0.21 seconds, next wake in 59 seconds

However simple test with curl show that newrelic server certificate is ok:

# curl -vL https://platform-api.newrelic.com:443/platform/v1/metrics |& grep 'SSL certificate'
*        SSL certificate verify ok.