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 件のコメント:

コメントを投稿

EXOでMacStudioをクラスタリング

以下のMacStudio2台に、EXOを使ってクラスタリングを行います。 ①MacStudio(M1 MAX 32GB) ②MacStudio(M4 MAX 36GB) 1)導入方法は、以下を参照。 参照先: https://github.com/exo-explore/exo/...