munin前提
用語
インストール今回はEPELリポジトリを使用してyumでインストールする。 管理サーバ側yum install --enablerepo=epel munin 監視対象サーバ側yum install --enablerepo=epel munin-node munin設定管理サーバ側 /etc/munin/munin.confコメントアウトされた項目を以下のように有効にする。 dbdir /var/lib/munin htmldir /var/www/html/munin logdir /var/log/munin rundir /var/run/munin 監視対象サーバ側 /etc/munin/munin-node.conf接続を許可する管理サーバのIPアドレス、監視対象サーバが公開するポートを以下のように指定する。 allow ^(127\.0\.0\.1)|(192.168.1.[0-9]{1,3})$
port 4949
監視対象サーバ側 /etc/sysconfig/iptablesiptablesでポート4949を公開する。 :OUTPUT ACCEPT [0:0] (略) -A INPUT -s 192.168.0.0/24 -p tcp --dport 4949 -j ACCEPT (略) COMMIT 監視されるApache設定監視対象サーバ側 /etc/httpd/httpd.conf <IfModule mod_status.c>
ExtendedStatus On
<Location /server-status>
SetHandler server-status
Order Deny,Allow
Deny from all
Allow from localhost 192.168.1.0/24
</Location>
</IfModule>
|
|