Child pages
  • Installation of NRPE agent on CentOS and RHEL
Skip to end of metadata
Go to start of metadata

This article intends to give the reader a brief introduction on how to install and configure the EPEL upstream version of the NRPE agent on CentOS/RHEL 6 and 7.

Historically, op5 has compiled and packaged the NRPE agent for a large number of Linux distributions, but as per Q2 2014 we stopped doing this since it required a lot of maintenance and time. More information on this decision can be found here:



Note that this article is intended for CentOS/RHEL 6 and 7 client hosts, and that these steps never should be performed on an OP5 Monitor server.

Step-by-step guide


1. Add the EPEL repository

CentOS 6 and CentOS 7:





2. Install NRPE and the plugins that is required to add the services via the function "Add UNIX client services" when adding a new host in the configuration UI in op5 Monitor


 3. Configure the agent to utilize the plugins using commands supported by op5 Monitor host scan.

Create a new file called /etc/nrpe.d/op5_commands.cfg containing the following information:

These paths to the plugins should match the paths to the installed plugins in step # 2.


4. Now edit /etc/nagios/nrpe.cfg and add your Monitor server(s) address(es) to the allowed_hosts parameter as a comma-separated list, example:


5. Restart the nrpe agent on the host, and make sure that nrpe is started at boot:

CentOS/RHEL 6:


CentOS/RHEL 7:


Now you can add the services via the function "Add UNIX client services" when adding a host in OP5 Monitor.



If the host is behind a firewall, or you have enabled firewall software on the host, you need to open for incoming traffic on TCP port 5666.


Linux server monitoring with SNMPv3

An alternative path as we recommend today is to use the SNMP (v3) protocol to monitor Linux hosts for added security. You can find how to setup that here: Monitoring Linux/Unix servers via SNMP


OP5 Monitor: Open Source Network Monitoring

OP5 is the preferred Open Source Networking & Server Monitoring tool for large multi-national companies in over 60 markets. If you would like to experience OP5 Monitor you can get started here, alternatively, if you prefer to get more hands on you can Download OP5 Monitor for free.