0% found this document useful (0 votes)
19 views11 pages

Install Nagios on Ubuntu 22.04 Guide

Uploaded by

yhiremath07
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
19 views11 pages

Install Nagios on Ubuntu 22.04 Guide

Uploaded by

yhiremath07
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

Nagios

Step1:launch the instance for nagios(22.04 version)main,Host server.

Step2:then open the main server in [Link] to root user.


Step3:apt update -y
apt upgrade -y

Step4:install nagioscore.
apt install wget unzip vim curl openssl build-essential libgd-dev libssl-dev libapache2-mod-php php-
gd php apache2 -y
wget [Link]
[Link]
Step5:tar -zxvf [Link]
cd /[Link]
./configure

Step6:make all
make install-groups-users
usermod -a -G nagios www-data
Step7:make install
make install-daemoninit
make install-commandmode
make install-config
make install-webconf
a2enmod rewrite cgi
systemctl restart apache2
make install-classicui
Step8:ufw enable
ufw allow apache
ufw openssh
ufw reload

Step9:htpasswd -c /usr/local/nagios/etc/[Link] nagiosadmin

Then give the password only.

Step10:wget [Link]
tar -zxvf [Link]
cd /[Link]
Step11:./configure --with-nagios-user=nagios --with-nagios-group=nagios
make install
sudo /usr/local/nagios/bin/nagios -v
systemctl restart apache2 nagios
systemctl status apache2 nagios
Step12:http//ip/nagios
Login with username:nagiosadmin
Password:your password.
Step13:open the host [Link] change to root password.

apt update -y

apt install nagios-nrpe-server nagios-plugins

Step14:vi /etc/nagios/[Link]
edit in allowed_hosts=[Link],[Link](ip of nagios main server)
Then save the file.
Step15:systemctl restart nagios-nrpe-server

Step16:then open the nagios main server.


vi /usr/local/nagios/etc/objects/[Link]
define host {
use linux-server
host_name santhini
alias My Ubuntu Host
address hostip
}
Step17:systemctl restart nagios

Step18:finally output.

You might also like