How to Install Nagios 4.4.9 On RHEL / ROCKY LINUX / ALMALINUX 8
Nagios
Center is an open source IT foundation checking and cautioning stage
fabricated utilizing PHP. It is utilized for observing strategic IT
framework parts like organization foundation, servers, network
conventions, framework measurements, applications, and administrations.
Also,
Nagios Center backings cautioning (when basic foundation parts come up
short and recuperate), through email, SMS, or custom content, and
announcing of the verifiable record of occasions, blackouts, warnings,
and ready reaction for later investigation.
Critically, Nagios
Center boats with different Programming interface's that furnish
coordination with existing or outsider applications as well as local
area created additional items.
This article will walk you through
the most common way of introducing Nagios Center 4.4.6 and Nagios
Modules 2.3.3 in RHEL 8 Linux conveyance.
To introduce Nagios Center bundle from sources, you really want to introduce following conditions including Apache HTTP server and PHP utilizing the default dnf bundle director.
My Spesification RHEL For Learning
Change Hostname
hostnamectl set-hostname svr-nagios
Configure static IP Address
nano /etc/sysconfig/network-scripts/ifcfg-enp0s17
reboot and login to your server again
Next handicap SELinux which is in implementing mode as a matter of course or you can set it in tolerant mode.
sed -i 's/SELINUX=.*/SELINUX=permissive/g' /etc/selinux/config
setenforce 0Then,
begin the HTTPD administration for the present, empower it to naturally
begin at framework boot and check its status utilizing the systemctl
orders.
dnf
install -y gcc glibc glibc-common perl httpd php wget gd gd-devel nano
openssl-devel make gettext automake autoconf net-snmp net-snmp-utils
systemctl start httpd
systemctl enable httpd
Presently download the Nagios Center source bundle utilizing wget order, separate it and move into the removed registry as displayed.
wget https://assets.nagios.com/downloads/nagioscore/releases/nagios-4.4.9.tar.gz
tar -zxvf nagios-4.4.9.tar.gz
cd nagios-4.4.9
run the accompanying orders to arrange the source bundle and assemble it.
./configure
make all
After that make the Nagios Client and Gathering, and add the Apache client to the Nagios Gathering as follows.
make install-groups-users
usermod -aG nagios apache
Presently introduce the double records, CGIs, and HTML documents with utilizing the accompanying orders.
make install
make install-init
run the accompanying orders to introduce and design the outside order record, an example setup document and the Apache-Nagios design record.
make install-commandmode
make install-config
make install-webconf
In this step, you want to get the Nagios Center web console utilizing HTTP fundamental validation. Thus, you'll have to make an Apache client record to have the option to sign into Nagios - this record will go about as the Nagios Head account.
htpasswd -c /usr/local/nagios/etc/htpasswd.users nagiosadmin
you really want to introduce important Nagios modules. Yet, before you download and introduce the Nagios modules, you want to introduce the necessary bundles for accumulating and constructing the module bundle.
dnf install -y gcc glibc glibc-common make gettext automake autoconf wget openssl-devel net-snmp net-snmp-utils
Then download and remove the most recent form of the Nagios Modules utilizing the accompanying orders.
cd
wget https://nagios-plugins.org/download/nagios-plugins-2.3.3.tar.gz
tar -zxvf nagios-plugins-2.3.3
cd nagios-plugins-2.3.3
Move into the extricated index, aggregate, form and introduce the Nagios Modules introduce the Nagios Modules as follows.
./configure
make
make install
Right now, you have set up the Nagios Center assistance and designed it to work with the Apache HTTP server. Presently you want to restart the HTTPD administration. Additionally, begin and empower the Nagios administration and check in the event that it is going as follows.
systemctl restart httpd
systemctl start nagios
systemctl enable nagios
In the event that you have firewall running, you want to open port 80 in the firewall.
firewall-cmd --permanent --zone=public --add-port=80/tcp
firewall-cmd --reload
In
this last step, you can now get to the Nagios web console. Open your
internet browser and guide it toward Nagios Center web index, for
instance (supplant the IP address or FDQN with your own qualities).
http://youripaddress/nagios
Login
username : nagiosadmin
password : yourpassword
Congrats!
You have effectively introduced Nagios Center on your RHEL 8 server.
Assuming you have any inquiries, utilize the input structure beneath to
contact us.

Comments
Post a Comment