- 追加された行はこの色です。
- 削除された行はこの色です。
目次
#contents
**概要 [#va039ffe]
nagios 3.3に日本語化パッチを適用してインストールする手順。
***パッケージ [#ac84c0f0]
-nagios core
http://www.nagios.org/download
~
-nagios plugin
wget http://prdownloads.sourceforge.net/sourceforge/nagiosplug/nagios-plugins-1.4.15.tar.gz
~
-nagios 日本語化パッチ
wget http://jaist.dl.sourceforge.jp/nagios-jp/38828/nagios-3.1.0-ja-utf8.patch.gz
~
-日本語フォント
wget 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
mv ../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 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
***日本語フォントの導入 [#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