MeetMe / newrelic-plugin-agent

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

ValueError('No JSON object could be decoded',) #329

Open kevin25 opened 10 years ago

kevin25 commented 10 years ago

Hello,

I got error:

Enabling plugin: php_fpm ERROR 2014-08-13 20:43:09,996 22536 MainProcess MainThread newrelic_plugin_agent.plugins.base fetch_data L452 : JSON decoding error: ValueError('No JSON object could be decoded',) ERROR 2014-08-13 20:43:09,996 22536 MainProcess MainThread newrelic_plugin_agent.plugins.base error_message L128 : Error collecting stats data from FPM. Please check configuration and sure it conforms with YAML syntax

I'm not sure what happened to this plugin? Can you tell me what's wrong? Thanks!

gmr commented 10 years ago

From the error:

"Error collecting stats data from FPM. Please check configuration and sure it conforms with YAML syntax"

It looks like your configuration is not setup properly.

kevin25 commented 10 years ago

Did you meant php-fpm or NewRelic Plugin Agent?

kevin25 commented 10 years ago

FYI, php-fpm doesnt show the status. I'm trying to figure it out. It's weird.

rlex commented 10 years ago

@kevin25, Do you managed to fix this? Faced same problem on my debian 7.x server.

ankitpr89 commented 9 years ago

All sleeping?

gmr commented 9 years ago

@ankitpr89 ? I pointed out what the error was. Since the newrelic-plugin-agent is just a client, if it's misconfigured it can not get the data. I can't help beyond what the error displays given lack of any additional information.

memeopen commented 9 years ago

this is so weird, i did everything by the README and a guide, I have properly answering page /status?json (from localhost, from remote)

and NGINX part works actually (/nginx_status), but the PHP-FPM doesn't :(

when i run in foreground i see:

ERROR 2015-09-03 06:47:27,552 30656 MainProcess MainThread newrelic_plugin_agent.plugins.base fetch_data L452 : JSON decoding error: ValueError('No JSON object could be decoded',) ERROR 2015-09-03 06:47:27,552 30656 MainProcess MainThread newrelic_plugin_agent.plugins.base error_message L128 : Error collecting stats data from FPM. Please check configuration and sure it conforms with YAML syntax

but my page does reply with proper JSON format..

any help will be appreciated!