Skip to content

Instantly share code, notes, and snippets.

@robbwagoner
Last active August 29, 2015 14:07
Show Gist options
  • Save robbwagoner/233af1f54ca8e2c5f5ae to your computer and use it in GitHub Desktop.
Save robbwagoner/233af1f54ca8e2c5f5ae to your computer and use it in GitHub Desktop.
Add New Relic agent to Ubuntu host interactively
#!/bin/bash
sudo bash -c '
export DEBIAN_FRONTEND=noninteractive
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 -y install newrelic-sysmond
nrsysmond-config --set license_key=XXXX
/etc/init.d/newrelic-sysmond start
'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment