2017年10月29日日曜日

nagios 4のインストール方法

1)以下、パッケージのインストールを行う。



yum -y install httpd php php-mbstring php-pear php-mysql mariadb-server mariadb
yum -y install gcc glibc glibc-common gd gd-devel make net-snmp openssl-devel xinetd unzip

2)ユーザとグループを作成する。



useradd nagios
groupadd nagcmd
usermod -a -G nagcmd nagios
usermod -G nagcmd apache
3)次に、以下のコマンドでNagiosCoreをインストールする。










cd
tar xzvf nagios-*.tar.gz
cd nagios-*
./configure --with-command-group=nagcmd
make all
make install
make install-commandmode
make install-init
make install-config
make install-webconf
4)NagiosCoreのインストールが完了した。

■□NagiosPluginインストール■□
1)NagiosPluginをインストールする。





cd
tar xvf nagios-plugins-*.tar.gz
cd nagios-plugins-*
./configure --with-nagios-user=nagios --with-nagios-group=nagios --with-openssl
make && make install
2)他サーバの監視で必要なNRPEについてもインストールする。








cd
tar xvf nrpe-*.tar.gz
cd nrpe-*
./configure --enable-command-args --with-nagios-user=nagios --with-nagios-group=nagios --with-ssl=/usr/bin/openssl --with-ssl-lib=/usr/lib/x86_64-linux-gnu
make all
make install
make install-xinetd
make install-daemon-config

0 件のコメント:

コメントを投稿

メモ

 find フォルダー名 -type f -exec sed -i 's/\/FKP/\/WEB\/FKP/g' {} +