0% found this document useful (0 votes)
7 views

Nagios Installation Linux

Nagios installation OFPPT

Uploaded by

yoras66287
Copyright
© © All Rights Reserved
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
7 views

Nagios Installation Linux

Nagios installation OFPPT

Uploaded by

yoras66287
Copyright
© © All Rights Reserved
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 2

###### instalation de nagios ######

1- installer les dépendances :

dnf update -y
dnf install -y gcc glibc glibc-common perl httpd php wget gd gd-devel
dnf install openssl-devel

2- creation utilisateur et group

useradd nagios
usermod -G nagios nagios

3- add the Apache user to the Nagios group

systemctl enable httpd


systemctl start httpd
usermod -G nagios apache

4- create a directory for 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

5- configuration des fichies

./configure --with-command-group=nagios
make all
make install

6- install the Init script

make install-init
make install-commandmode
make install-config
make install-webconf

htpasswd -s -c /usr/local/nagios/etc/htpasswd.users nagiosadmin

7- demarage des services :

systemctl enable nagios


systemctl start nagios
systemctl restart httpd

8- afficher le status :

systemctl status nagios

9- acceder au web interface

http://localhost/nagios
http://172.0.0.1/nagios
utilisateur : nagiosadmin
password : ista.ma

10 - pour installer les plugins :

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

./configure --with-nagios-user=nagios --with-nagios-group=nagios

make
make install

### vérification :

/usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg

systemctl restart nagios


systemctl restart httpd

You might also like