wiki/HowtoNewRelic.md

33 lines
1.1 KiB
Markdown
Raw Normal View History

2016-10-10 10:11:09 +02:00
---
title: Howto New Relic
---
2016-10-20 17:28:50 +02:00
# Installer l'agent Servers "sysmond"
Doc officielle : <https://docs.newrelic.com/docs/servers/new-relic-servers-linux/installation-configuration/servers-installation-ubuntu-debian>
```
# 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 update
# apt install newrelic-sysmond
# nrsysmond-config --set license_key=<votre clé de licence>
# systemctl start newrelic-sysmond
```
2016-10-10 10:11:09 +02:00
# Installer l'agent PHP
Doc officielle : <https://docs.newrelic.com/docs/agents/php-agent>
```
# 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 update
2016-10-10 10:12:56 +02:00
# apt install newrelic-php5
2016-10-10 10:12:31 +02:00
# newrelic-install install
2016-10-20 11:24:51 +02:00
# rm /etc/php5/conf.d/newrelic.ini
2016-10-20 17:28:50 +02:00
# systemctl restart <votre serveur web>
2016-10-10 10:11:31 +02:00
```
2016-10-10 10:11:09 +02:00
Debconf vous demandera la clé de license à mettre. On pourra aussi la mettre à la main dans `/etc/php5/mods-available/newrelic.ini`.