May 192010

If you are planning to monitor Windows servers, it’s highly advised to install NRPE module. On windows side, I generaly use NSCLIENT++ for host check.

You’ll be able to execute remote commands on hosts.

Installation process:

cd /usr/local/src
sudo wget
sudo tar xzfv nrpe-2.12.tar.gz
cd nrpe-2.12/
sudo ./configure --with-ssl=/usr/bin/openssl --with-ssl-lib=/usr/lib
sudo make all
sudo make install-plugin

This will give you the additionnal command: check_nrpe

NRPE Plugin for Nagios
Copyright (c) 1999-2008 Ethan Galstad (
Version: 2.12
Last Modified: 03-10-2008
License: GPL v2 with exemptions (-l for more info)
SSL/TLS Available: Anonymous DH Mode, OpenSSL 0.9.6 or higher required

Usage: check_nrpe -H <host> [-n] [-u] [-p <port>] [-t <timeout>] [-c <command>] [-a <arglist...>]

 -n         = Do no use SSL
 -u         = Make socket timeouts return an UNKNOWN state instead of CRITICAL
 <host>     = The address of the host running the NRPE daemon
 [port]     = The port on which the daemon is running (default=5666)
 [timeout]  = Number of seconds before connection times out (default=10)
 [command]  = The name of the command that the remote daemon should run
 [arglist]  = Optional arguments that should be passed to the command.  Multiple
              arguments should be separated by a space.  If provided, this must be
              the last option supplied on the command line.

This plugin requires that you have the NRPE daemon running on the remote host.
You must also have configured the daemon to associate a specific plugin command
with the [command] option you are specifying here.  Upon receipt of the
[command] argument, the NRPE daemon will run the appropriate plugin command and
send the plugin output and return code back to *this* plugin.  This allows you
to execute plugins on remote hosts and 'fake' the results to make Nagios think
the plugin is being run locally.

  3 Responses to “Installing NRPE for Nagios on Ubuntu 10.04 LTS”

  1. Hi,

    i have a problem with the command “check_nrpe” on Ubunt 10.04 (64-Bit) with other 32-Bit hosts. Failure/Desription if i start check_nrpe -H check_users : “checking for SSL headers… configure: error: Cannot find ssl headers”
    Solution: Please change “./configure” to “./configure –with-ssl=/usr/bin/openssl –with-ssl-lib=/usr/lib”
    So everything works fine.
    Hope it helps (because i search the solution for hours) šŸ™‚

  2. Hi celtar,

    Thanks, the post is updated.


  3. Hi
    If helps anyone I did this before running other commands as I kept getting same error as celtar.
    1 sudo apt-get update
    2 sudo apt-get install build-essential libssl-dev

    Thx Greg