Saturday, 9 September 2023

How to Add Linux Host to NagiOS Monitoring Server - CentOS 8



NRPE (Nagios Remote Plugin Executor) is a client-side plugin executor to communicate client statistic between server and client. Nagios plugins and NRPE (Nagios Remote Plugin Executor) are available in EPEL Repository (Extra Packages for Enterprise Linux) for CentOS 8.
 
This article describes, How to add Linux host to Nagios Monitoring Server - CentOS 8.
 
Step 1. Setup EPEL Repository: Follow the article “How to configure EPEL repository on CentOS 8” using yum command on CentOS 8.
 
Step 2. NRPE Package Installations: Run the following dnf command to install NRPE packages and its dependencies:
 
[root@linuxcnf ~]# dnf nagios-plugins nrpe -y
…………………….
 
Complete!
[root@linuxcnf ~]#
 
Step 3. NRPE Configurations: Configure NRPE to allow communication with Nagios Server: Open NRPE configuration file /etc/nagios/nrpe.cfg and add the Nagios server in allowed_hosts:
 
[root@linuxcnf ~]# vi /etc/nagios/nrpe.cfg
……………………..
allowed_hosts=127.0.0.1,192.168.1.8
 
[root@linuxcnf ~]#
 
Step 4. Restart and Enable Service: Run the following command to restart the NRPE service and auto start across the reboot:
 
[root@linuxcnf ~]# systemctl restart nrpe
[root@linuxcnf ~]# systemctl enable nrpe
…………………….
 
[root@linuxcnf ~]#
 
Done!!! NagiOS NRPE client installation has been done successfully on CentOS 8. Now NagiOS Server side configuration can be initiated.

No comments:

Post a Comment