How to Install Nagios Core on Ubuntu 20 04

Опубликовано: 19 Март 2026
на канале: ABDULLAH AL MAMUN
289
1

How to Install Nagios on Ubuntu
DOWNLOAD LINK HERE
https://www.fosstechnix.com/how-to-in...

Step 01

sudo apt update
sudo apt install -y build-essential libgd-dev openssl libssl-dev unzip apache2 php libapache2-mod-php php-gd

Step #2
sudo useradd nagios
sudo groupadd nagcmd
sudo usermod -a -G nagcmd nagios
sudo usermod -a -G nagcmd www-data

Step #3
cd /tmp
wget https://assets.nagios.com/downloads/n...
tar xzf nagios-4.5.1.tar.gz
cd nagios-4.5.1

Step #4
sudo make install
sudo make install-init
sudo make install-commandmode
sudo make install-config
sudo make install-webconf

Step #5

cd /tmp
wget https://nagios-plugins.org/download/n...
tar xzf nagios-plugins-2.3.3.tar.gz
cd nagios-plugins-2.3.3
./configure --with-nagios-user=nagios --with-nagios-group=nagios
make
sudo make install


Step #6

sudo a2enmod rewrite
sudo a2enmod cgi
sudo systemctl restart apache2


Step #7

sudo htpasswd -c /usr/local/nagios/etc/htpasswd.users admin

Step #8
sudo systemctl start nagios
sudo systemctl enable nagios

Step #9
Open your web browser and navigate to http://your-server-ip/nagios.
Log in with the username nagiosadmin and the password you set earlier.