Install Nagios nrpe client and plugins in Ubuntu/Debian

To install Nagios nrpe client and plugins in Ubuntu/Debian run following command:

$ apt-get install nagios-nrpe-server nagios-plugins

After installing client and plugins you need to change allowed_hosts configuration in nrpe.cfg file.

By default allowed_hosts value in nrpe.cfg is


You need to replace with Nagios master IP address.

If your Nagios master IP address is, then allowed_hosts value looks like below:


After updating this value restart nagios-nrpe-server daemon with following command:

$ service nagios-nrpe-server restart

Now you need to check if slave is accessible from master or not with following command:

$ /usr/lib/nagios/plugins/check_nrpe -H


NRPE v2.12

where is slave IP address,

and NRPE v2.12 is NRPE plugin version in slave servers

If you wont get NRPE plugin version, mostly the problem is with nrpe.cfg file or your firewall in slave is not allowing to access.


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s