LoginSignup
0
2

More than 3 years have passed since last update.

Amazon Linux2 で NewRelic Agent からデータが送信されない

Posted at

PrivateTmp が有効になっていると NewRelic Agent が以下のエラーを吐いてしまいます。

warning: daemon connect(fd=6 uds=/tmp/.newrelic.sock) returned -1 errno=ENOENT. Failed to connect to the newrelic-daemon. Please make sure that there is a properly configured newrelic-daemon running. For additional assistance, please see: https://newrelic.com/docs/php/newrelic-daemon-startup-modes

PrivateTmp を無効にするしか対処方法が無いみたい...

# /usr/bin/mkdir -p /etc/systemd/system/php-fpm.service.d/
# echo "[Service]" > /etc/systemd/system/php-fpm.service.d/privatetmp.conf
# echo "PrivateTmp=false" >> /etc/systemd/system/php-fpm.service.d/privatetmp.conf
# /usr/bin/systemctl daemon-reload
# /usr/bin/systemctl restart php-fpm.service
# /usr/bin/systemctl status php-fpm.service

参考: Rlicでサーバが表示されない

0
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
2