Step 1 – Installing NRPE

NRPE is available under default apt repositories of Ubuntu systems. Execute the following command to install it

Step 2 – Configure NRPE

In NRPE configuration, first we need to nrpe to which nagios servers it accepts requests, For example your nagios server ip is 192.168.1.100, then add this ip to allowed hosts list. Edit NRPE configuration file /etc/nagios/nrpe.cfg and make changes like we can add more Nagios servers in allowed hosts by comma separated list. Now restart NRPE service. Now its ready to listen to requests from Nagios server

Step 3 – Verify Connection

Let’s verify the connection between the Nagios server and NRPE client machine. Login to your Nagios server and check the Nagios server can communicate with NRPE service properly. Use check_nrpe command on Nagios server under plugins directory. The command will be like as below here 192.168.1.110 is the IP address of client machine. The output “NRPE v2.15” shows that the Nagios server successfully communicated with NRPE.

Step 4 – Add Check Commands in NRPE

All the services check commands with the nagios plugins packages, which is by default installed in /usr/lib/nagios/plugins/ for 32 bit systems. Default installation adds few commands in configuration file. Add more commands as per your requirements like below

Step 5 – Start/Stop NRPE Service

Use following commands to start, stop or restart NRPE service. Each time we make any changes in configuration file required to restart service

How To Install NRPE on LinuxMint 19 18   TecAdmin - 96