2.4. Nagios Core の作りとインストール
Nagios Core を作成およびインストールするには、最初に ./configure を実行します。
./configure --with-command-group=nagcmd
[user@nagios]# ./configure --with-command-group=nagcmd
./configure を実行した後、Nagios Core ソースコードをコンパイルします。
make all
[user@nagios]# make all
Nagios Core を作成したら、インストールします。
make install make install-init make install-config make install-commandmode make install-webconf
[user@nagios]# make install
[user@nagios]# make install-init
[user@nagios]# make install-config
[user@nagios]# make install-commandmode
[user@nagios]# make install-webconf
イベントハンドラーをコピーし、その所有権を変更します。
cp -R contrib/eventhandlers/ /usr/local/nagios/libexec/ chown -R nagios:nagios /usr/local/nagios/libexec/eventhandlers
[user@nagios]# cp -R contrib/eventhandlers/ /usr/local/nagios/libexec/
[user@nagios]# chown -R nagios:nagios /usr/local/nagios/libexec/eventhandlers
最後に、プリフライトチェックを実行します。
/usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg
[user@nagios]# /usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg