facebook twitter hatena line email

Linux/muninインストール

提供: 初心者エンジニアの簡易メモ
2018年1月23日 (火) 10:06時点におけるAdmin (トーク | 投稿記録)による版 (nginxのstatusにアクセスできいるように)

移動: 案内検索

muninインストール準備

# yum install munin --enablerepo=epel

apacheのmunin設定

# vi /etc/httpd/conf.d/munin.conf

muninの設定

# vi /etc/munin/munin-node.conf

監視されるサーバの場合は監視元サーバのIPを追加

allow ^192\.168\.0\.2$

監視されるmuninのcron設定

# vi /etc/cron.d/munin

nginxの場合

php-fpmで使えるように

cd /usr/share/munin/plugins
sudo git clone git://github.com/tjstein/php5-fpm-munin-plugins.git
sudo chmod +x php5-fpm-munin-plugins/phpfpm_*
cd /etc/munin/plugins/
ln -s /usr/share/munin/plugins/php5-fpm-munin-plugins/phpfpm_average phpfpm_average
ln -s /usr/share/munin/plugins/php5-fpm-munin-plugins/phpfpm_connections phpfpm_connections
ln -s /usr/share/munin/plugins/php5-fpm-munin-plugins/phpfpm_memory phpfpm_memory
ln -s /usr/share/munin/plugins/php5-fpm-munin-plugins/phpfpm_processes phpfpm_processes
ln -s /usr/share/munin/plugins/php5-fpm-munin-plugins/phpfpm_status phpfpm_status

nginxのstatusにアクセスできいるように

statusにアクセスできるように

# vi /etc/php-fpm.d/www.conf
;pm.status_path = /status
pm.status_path = /phpfpm_status