Created
April 28, 2016 06:26
-
-
Save rahul286/5ba2d9d56e7dbcb5e1c581e9c9abcfda to your computer and use it in GitHub Desktop.
Change newrelic account for an application by license_key change only
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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