サイレントインストール用スクリプト
#!/bin/bash
# install newrellic agent
export NR_INSTALL_SILENT='1'
export NR_INSTALL_KEY='__NEWRELIC_LISENCE_KEY_HERE__'
/bin/rpm --quiet -Uvh http://yum.newrelic.com/pub/newrelic/el5/x86_64/newrelic-repo-5-3.noarch.rpm
/usr/bin/yum -y install newrelic-sysmond
/usr/sbin/nrsysmond-config --set license_key=${NR_INSTALL_KEY}
/etc/init.d/newrelic-sysmond start
/sbin/chkconfig newrelic-sysmond on
/usr/bin/yum -y install newrelic-php5
/usr/bin/newrelic-install install
/bin/sed -i -e 's/PHP Application/__APPLICATION_NAME_HERE__/g' /etc/php.d/newrelic.ini
/sbin/service php-fpm restart