Skip to content

Instantly share code, notes, and snippets.

@rahul286
Created April 28, 2016 06:26
Show Gist options
  • Save rahul286/5ba2d9d56e7dbcb5e1c581e9c9abcfda to your computer and use it in GitHub Desktop.
Save rahul286/5ba2d9d56e7dbcb5e1c581e9c9abcfda to your computer and use it in GitHub Desktop.
Change newrelic account for an application by license_key change only
grep -lr "OLD_KEY" /root/newrelic-npi | xargs sed -i.bak 's/OLD_KEY/NEW_KEY/g'
grep -lr "OLD_KEY" /etc | xargs sed -i.bak 's/OLD_KEY/NEW_KEY/g'
## check your npi plugins
./npi stop com.newrelic.plugins.mysql.instance
./npi start com.newrelic.plugins.mysql.instance
## check your php version
service php7.0-fpm restart
# Not needed
#service newrelic-daemon restart
service newrelic-sysmond restart
# Not sure
service newrelic_plugin_com.newrelic.plugins.mysql.instance restart
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment