自分用メモ。
wget http://jaist.dl.sourceforge.net/sourceforge/nagios/nagios-3.0.6.tar.gz
wget http://nchc.dl.sourceforge.net/sourceforge/nagiosplug/nagios-plugins-1.4.13.tar.gz
wget http://jaist.dl.sourceforge.net/sourceforge/nagios/nrpe-2.12.tar.gz
wget http://globalbase.dl.sourceforge.jp/nagios-jp/36442/nagios-3.0.6-ja-utf8.patch.gz
tar zxvf nagios-3.0.6.tar.gz
cd nagios-3.0.6
gzip -dc ../nagios-3.0.6-ja-utf8.patch.gz | patch -p0
./configure\
–with-nagios-user=nagios\
–with-nagios-group=nagios\
–with-command-user=nagios\
–with-command-group=nagios\
–prefix=/usr/local/nagios
make all
su
mkdir /usr/local/nagios-3.0.6
ln -s /usr/local/nagios-3.0.6 /usr/local/nagios
useradd -d /home/staffs/nagios -s /sbin/nologin nagios
passwd nagios
make install
make install-init
make install-commandmode
make install-config
exit
cd ../
tar xvzf nagios-plugins-1.4.13.tar.gz
cd nagios-plugins-1.4.13
./configure –prefix=/usr/local/nagios
make all
su
make install
ScriptAlias /nagios/cgi-bin/ /usr/local/nagios/sbin/
Options FollowSymLinks ExecCGI -Indexes
AllowOverride None
Order allow,deny
allow from all
Alias /nagios/ /usr/local/nagios/share/
Options FollowSymLinks ExecCGI -Indexes
AllowOverride None
Order allow,deny
allow from all
vi /usr/local/nagios/etc/cgi.cfg
#use_authentication=1 #この行をコメントアウト
use_authentication=0 #この行を追加
vi /usr/local/nagios/etc/nagios.cfg
#date_format=us
date_format=iso8601
/etc/rc.d/init.d/nagios restart
かみらがメモするの?