Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

.cfg file keeps being added to /etc/newrelic/ #84

Open
snacks-lord opened this issue Mar 31, 2020 · 0 comments
Open

.cfg file keeps being added to /etc/newrelic/ #84

snacks-lord opened this issue Mar 31, 2020 · 0 comments

Comments

@snacks-lord
Copy link

I'm using newrelic_php_conf_dir: /etc/php/php.d but every time I run puppet, it keeps adding the newrelic.cfg file to /etc/newrelic/. Which I do not want. The reason is, if the file is placed there, then it does now allow the PHP agent to connect to the daemon:
2020-03-31 10:46:38.415 -0400 (11689 11689) warning: failed to connect to the newrelic-daemon. The agent expects a daemon to be started externally.

Basically every time I run puppet, I have to remove this .cfg file and restart php-fpm.
Has anybody had this issue?
How can I avoid it?

This is in my common.eyaml
#New Relic newrelic::agent_type: php newrelic::server_type: linux newrelic::agent_php: newrelic_php_conf_dir: /etc/php/php.d newrelic_daemon_port: "@newrelic-daemon" newrelic::license_key: BLAHBLAHBLAH

Under php::settings:
newrelic: newrelic.daemon.port: "@newrelic-daemon"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant