Install NRPE on CentOS 7

1) Install required packages

yum -y install wget openssl-devel

2)  Download latest NRPE agent
 

cd /tmp
wget http://assets.nagios.com/downloads/nagiosxi/agents/linux-nrpe-agent.tar.gz

 

3)  Unzip NRPEagent

tar xzf linux-nrpe-agent.tar.gz

4)  Install agent
 

cd linux-nrpe-agent
./fullinstall

You will get asked which hosts to add. include your Nagios Server here

nrpe1

In this case my Nagios server is 10.0.0.50

6)  Test it is listening on port

telnet 0 5666

7) Open up firewall ports if required.

firewall-cmd --permanent --add-port=5666/tcp
firewall-cmd --reload