01_Installation
Installation
Installer un Debian 13
sudo apt-get update
sudo apt-get install -y autoconf gcc libc6 make wget unzip apache2 apache2-utils php libgd-dev libssl-dev build-essential apache2 php gcc make wget unzip libgd-dev libmcrypt-dev libkrb5-dev
Download le package :
cd /tmp
wget -O nagioscore.tar.gz https://github.com/NagiosEnterprises/nagioscore/archive/nagios-4.5.12.tar.gz
tar xzf nagioscore.tar.gz
Compile:
cd /tmp/nagioscore-nagios-4.4.6/
./configure --with-httpd-conf=/etc/apache2/sites-enabled
make all
Create user & group:
sudo groupadd nagios
sudo useradd -m -g nagios -s /bin/bash nagios
sudo groupadd nagcmd
sudo usermod -a -G nagcmd nagios
sudo usermod -a -G nagcmd www-data
Ensuite, relance la configuration :
sudo ./configure --with-httpd-conf=/etc/apache2/sites-enabled
Puis installation Binary:
sudo make all
sudo make install
sudo make install-init
sudo make install-config
sudo make install-daemoninit
sudo make install-commandmode
sudo make install-config
sudo make install-webconf
Installation Apache Config File:
sudo a2enmod rewrite
sudo a2enmod cgi
Pour le Firewall:
iptables -I INPUT -p tcp --destination-port 80 -j ACCEPT
apt-get install -y iptables-persistent
Create nagiosadmin User Account:
sudo htpasswd -c /usr/local/nagios/etc/htpasswd.users nagiosadmin
Restart Service & Damon:
sudo systemctl restart apache2.service
sudo systemctl start nagios.service
Maintenant dans notre nagivateur on tape l'address IP avec “/nagios”

Credential:
nagiosadmin: “MDPtapéplushaut”