- 追加された行はこの色です。
- 削除された行はこの色です。
目次
#contents
**概要 [#va039ffe]
nagios 3.3に日本語化パッチを適用してインストールする手順。
***パッケージ [#h7ec6b7c]
-nagios core~
http://www.nagios.org/download~
~
-nagios plugin~
http://prdownloads.sourceforge.net/sourceforge/nagiosplug/nagios-plugins-1.4.15.tar.gz
http://prdownloads.sourceforge.net/sourceforge/nagiosplug/nagios-plugins-1.4.15.tar.gz~
~
-nagios 日本語化パッチ~
http://jaist.dl.sourceforge.jp/nagios-jp/38828/nagios-3.1.0-ja-utf8.patch.gz
-nagios 日本語化パッチ(3.1.0用)~
http://jaist.dl.sourceforge.jp/nagios-jp/38828/nagios-3.1.0-ja-utf8.patch.gz~
~
-nagios 日本語化パッチ(3.3.1用)~
http://ftp.momo-i.org/pub/other/nagios-jp-3.3.1.patch.gz~
~
-日本語フォント~
http://globalbase.dl.sourceforge.jp/efont/10087/sazanami-20040629.tar.bz2
http://globalbase.dl.sourceforge.jp/efont/10087/sazanami-20040629.tar.bz2~
~
***動作環境 [#p02676f5]
|OS|CentOS 6.0 x86_64|
|nagios|3.3.1|
|日本語化パッチ|3.1.0用|
***前提条件 [#b6be558f]
インストールには以下のパッケージが導入されていることを前提とする。~
~
-ApacheとPHPの連携設定が完了している~
-コンパイル用開発環境一式~
-gd~
-gd-devel~
-libpng~
**インストール手順 [#i81c6a24]
***日本語化パッチの適用 [#i8edc4e8]
tar xfvz nagios-3.3.1.tar.gz
cd nagios
wget http://jaist.dl.sourceforge.jp/nagios-jp/38828/nagios-3.1.0-ja-utf8.patch.gz
gzip -dc nagios-3.1.0-ja-utf8.patch.gz| patch -p0
***コンパイル [#f2411a7a]
./configure --prefix=/usr/local/nagios --with-cgiurl=/nagio s/cgi-bin --with-htmurl=/nagios --with-nagios-user=nagios --with-nagios-grp=nagios
make
make all
make install-init-init
make install-commandmode
make install-config
make install-webconf
make install-exfoliation
make install-classicui
***自動起動設定 [#xe9e36c2]
chdkconfig --add nagios
chkconfig --add nagios
chkconfig nagios on
chkconfig nagios on--list | grep nagios
nagios 0:off 1:off 2:on 3:on 4:on 5:on 6:off
***手動設定 [#y167de66]
mkdir /usr/local/nagios/var/spool
mkdir /usr/local/nagios/var/spool/checkresults
chwon -fR nagios.nagios /usr/local/nagios
***プラグインのインストール [#n0679f36]
wget http://prdownloads.sourceforge.net/sourceforge/nagiosplug/nagios-plugins-1.4.15.tar.gz
tar xfvz nagios-plugins-1.4.15.tar.gz
cd nagios-plugins-1.4.15
./configure --prefix=/usr/local/nagios --with-cgiurl=/nagios/cgi-bin
make install
***日本語フォントの導入 [#td42332b]
wget http://globalbase.dl.sourceforge.jp/efont/10087/sazanami-20040629.tar.bz2
zip2 -d sazanami-20040629.tar.bz2
tar xfv zsazanami-20040629.tar
cd sazanami-20040629
mkdir /usr/local/nagios/etc/font
cp *.ttf /usr/local/nagios/etc/font
***Apache設定 [#l059f807]
-/etc/httpd/conf/httpd.conf
末尾に以下を追加
Alias /nagios/cgi-bin/ "/usr/local/nagios/sbin"
<Directory /usr/local/nagios/sbin>
Options ExecCGI FollowSymLinks
AddHandler cgi-script .cgi .pl
AllowOverride All
Order allow,deny
Allow from all
</Directory>
Alias /nagios/ "/usr/local/nagios/share"
<Directory /usr/local/nagios/share>
Options Indexes FollowSymLinks
AllowOverride All
Order allow,deny
Allow from all
</Directory>
***動作設定 [#v5dd5982]
BASIC認証を無効化~
~
-./nagios/etc/cgi.cfg
【変更前】use_authentication=1
【変更後】use_authentication=0
**エラー対策 [#c80bf69a]
***SE Linuxが有効な場合の対処 [#deac80cb]
SE Linuxが有効化されている環境においては権限問題が発生する。~
この問題を回避するためには、nagiosのWebコンテンツ部分をhttpdsの権限に差し替える。~
chcon -R -t httpd_sys_content_t /usr/local/nagios/sbin/
chcon -R -t httpd_sys_content_t /usr/local/nagios/share/
/etc/init.d/nagios restart
**参考 [#o9dddd0d]
-Nagios 3.x~
http://www.momo-i.org/comment/7~
~
-CentOS5.5にNagios3をインストールする~
http://blog.livedoor.jp/tani_masaru/archives/51716994.html~