Nagios Installation Linux
Nagios Installation Linux
dnf update -y
dnf install -y gcc glibc glibc-common perl httpd php wget gd gd-devel
dnf install openssl-devel
useradd nagios
usermod -G nagios nagios
mkdir /root/nagios
wget https://assets.nagios.com/downloads/nagioscore/releases/nagios-4.4.9.tar.gz
tar -xzvf nagios-4.4.9.tar.gz
./configure --with-command-group=nagios
make all
make install
make install-init
make install-commandmode
make install-config
make install-webconf
8- afficher le status :
http://localhost/nagios
http://172.0.0.1/nagios
utilisateur : nagiosadmin
password : ista.ma
cd /root/nagios
wget https://nagios-plugins.org/download/nagios-plugins-2.3.3.tar.gz
tar -xzvf nagios-plugins-2.3.3.tar.gz
cd nagios-plugins-2.3.3
make
make install
### vérification :
/usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg