nagiosの設定
無事インストールが終わったので、インストール後の設定を行う。
nagiosはApacheと連動して動くので、まずはApacheがインストールされているか確認
# yum list installed httpd Loaded plugins: rhnplugin, security Excluding Packages in global exclude list Finished Installed Packages httpd.i386 2.2.3-45.el5 installed
インストールされていることがわかったので、後は起動とその設定
# service httpd start httpd を起動中: [ OK ] # chkconfig --list httpd httpd 0:off 1:off 2:off 3:off 4:off 5:off 6:off # chkconfig httpd on # chkconfig --list httpd httpd 0:off 1:off 2:on 3:on 4:on 5:on 6:off
# htpasswd -c /etc/nagios/htpasswd.users nagios New password: Re-type new password: Adding password for user nagios
# vi /etc/nagios/cgi.cfg use_authentication=1→0 # /etc/rc.d/init.d/nagios restart
CentOS 5.1にNagiosをインストールしてApacheとMySQLを監視 - 森薫の日記
サーバーを多彩な手法で監視 Nagios - 特選フリーソフト:ITpro
@IT:Linuxで動く便利ツール[Nagios](2/2)
・通知先の設定
contacts.cfg の email をいじればいいらしい
define contact{ contact_name test use generic-contact alias Nagios Admin email test@test.co.jp } ############################################################################### ############################################################################### # # CONTACT GROUPS # ############################################################################### ############################################################################### # We only have one contact in this simple configuration file, so there is # no need to create more than one contact group. define contactgroup{ contactgroup_name admins alias Nagios Administrators members nagiosadmin,test }