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


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でサーバが表示されない