Please paste the permalink to the page in question below:
Please share your agent version and other relevant versions below:
New Relic daemon version 220.127.116.11-56d5a21db092
Please share your question/describe your issue below. Include any screenshots that may help us understand your question:
I have installed the php agent on an Amazon Linux 2 server, which is running nginx 1.12.2 and php 7.2.11(fpm-fcgi).
I’m polling an api endpoint on that server, so I know that there’s web traffic on the machine. I can see this traffic in our application logs. But I don’t see any of this data appearing in the APM Application dashboard.
I also have a
watch command polling the application locally on that same box via CLI. This traffic is showing up as “non-web transactions” in the APM dashboard.
watch poll command is running as the same linux user as the php-fpm and nginx worker pools.
I’ve looked over the configuration of the daemon, and it appears to be set up correctly; I can transcribe the various
ps output and file permissions if needed.
/var/log/newrelic/php_agent.log is full of “Failed to connect to the newrelic-daemon” errors.
I have been able to get it working on a few occasions by restarting the server processes, but these machines are build automatically as part of our auto-scaling, so a manual fix isn’t suitable.
I tried adding
stop daemon; stop nginx; stop fpm; start nginx; start fpm to the end of the deployment script, but it didn’t work.
Any advice for the next thing to try?