Skip to content

Instantly share code, notes, and snippets.

@lennartvdd
Created June 10, 2015 09:01
Show Gist options
  • Select an option

  • Save lennartvdd/04e072dd35a30bbe5aab to your computer and use it in GitHub Desktop.

Select an option

Save lennartvdd/04e072dd35a30bbe5aab to your computer and use it in GitHub Desktop.
Install NewRelic Server
#!/bin/sh
echo "This script will install NewRelic Server Monitoring"
read -p "License Key:" NEWRELIC_LICENSE_KEY
echo deb http://apt.newrelic.com/debian/ newrelic non-free >> /etc/apt/sources.list.d/newrelic.list
wget -O- https://download.newrelic.com/548C16BF.gpg | apt-key add -
apt-get update
apt-get install newrelic-sysmond
nrsysmond-config --set license_key=$NEWRELIC_LICENSE_KEY
echo "Start newrelic with 'service newrelic-sysmond start'"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment