Installing Nagios Core on Ubuntu:
- Install Required Packages:
sudo apt-get update sudo apt-get install -y build-essential libgd-dev unzip apache2
- Create Nagios User and Group:
sudo useradd nagios sudo groupadd nagcmd sudo usermod -a -G nagcmd nagios
- Download and Install Nagios Core:
wget https://assets.nagios.com/downloads/nagioscore/releases/nagios-<version>.tar.gz tar -xvzf nagios-<version>.tar.gz cd nagios-<version>
./configure --with-command-group=nagcmd make all sudo make install sudo make install-init sudo make install-config sudo make install-commandmode sudo make install-webconf
- Configure Apache and Add Nagios Admin User:
sudo htpasswd -c /usr/local/nagios/etc/htpasswd.users nagiosadmin
- Start Apache Service:
sudo systemctl start apache2
- Start Nagios Service and Enable at Startup:
sudo systemctl start nagios sudo systemctl enable nagios
- Access Nagios Web Interface: Open your browser and go to
http://localhost/nagios
. Use usernamenagiosadmin
and the password you created in the previous step.
These steps provide a basic installation of Nagios Core on Ubuntu. If you are using a different operating system or need more details, it is essential to refer to the official Nagios Core documentation.