How to Install NRPE on Ubuntu 20

NRPE is the application to execute Nagios plugins in remote server. NRPE packages are available under the default repositories on Ubuntu systems. This article explains the steps to install and configure NRPE in Ubuntu 20.

Step1: Login to the server via ssh as root.

Step2: Install NRPE and Nagios plugins.

#apt install nagios-nrpe-server nagios-plugins

Step3: Open the NRPE configuration file.

#vi /etc/nagios/nrpe.cfg 

Step4: Update the Nagios server ipaddress and save.

allowed_hosts=127.0.0.1, NAGIOS-IP

Where NAGIOS-IP need to be replaced with the ipaddress of Nagios server.

Step5: Restart NRPE service.

#systemctl restart nagios-nrpe-server 

No we can customize the check commands according to the requirements.

That's all…