9
10

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

CentOSにnew relicの監視デーモンをインストール

Last updated at Posted at 2014-12-10

サーバー監視用のデーモンと、php監視用のモジュールの入れ方 φ(..)メモメモ

# sudo yum install -y newrelic-php5

cd /usr/local/src
sudo wget http://download.newrelic.com/php_agent/release/newrelic-php5-4.14.0.72-linux.tar.gz
sudo tar xvf newrelic-php5-4.14.0.72-linux.tar.gz
cd newrelic-php5-4.14.0.72

# 実行後シリアル入力
sudo ./newrelic-install install


# php.iniに追記
vim /usr/local/apache2/conf/php.ini
# パスミスってたので書き変えた
extension='/usr/local/lib/php/extensions/no-debug-zts-20090626/newrelic.so'

# ないなら書き込む 基本書かれてる
newrelic.license="「ここにライセンスキーをかいてね」"
sudo rpm -Uvh http://yum.newrelic.com/pub/newrelic/el5/x86_64/newrelic-repo-5-3.noarch.rpm

sudo yum install -y newrelic-sysmond
sudo nrsysmond-config --set license_key=「ここにライセンスキーをかいてね」
sudo cp /etc/newrelic/newrelic.cfg.template /etc/newrelic/newrelic.cfg

sudo chkconfig newrelic-sysmond on
sudo chkconfig newrelic-daemon on
sudo /etc/init.d/newrelic-sysmond start
sudo /etc/init.d/newrelic-daemon start
9
10
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
9
10

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?