Skip to content

Instantly share code, notes, and snippets.

@tekton
Last active August 29, 2015 14:07
Show Gist options
  • Save tekton/c93d50f7de4b5099c93d to your computer and use it in GitHub Desktop.
Save tekton/c93d50f7de4b5099c93d to your computer and use it in GitHub Desktop.
newrelic_server.bash
#!/bin/bash
echo "deb http://apt.newrelic.com/debian/ newrelic non-free" > newrelic.list
sudo cp newrelic.list /etc/apt/sources.list.d/newrelic.list
rm newrelic.list
#
wget -O- https://download.newrelic.com/548C16BF.gpg | sudo apt-key add -
sudo apt-get update
sudo apt-get install newrelic-sysmond
#
sudo nrsysmond-config --set license_key=$1
sudo /etc/init.d/newrelic-sysmond start
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment