Database Reference
In-Depth Information
Executing remote plugins via the NRPE plugin
NRPE is a plugin to execute plugins on remote hosts. One may think of it as OpsCenter
and its agents (see the following figure). With NRPE, Nagios can monitor remote host re-
sources (such as memory, CPU, disk, and network) and can execute any plugin on a re-
mote machine. The following figure shows Nagios with the NRPE plugin in action:
NRPE installation has to be done on the Nagios machine as well as on all the other ma-
chines where we want to execute a Nagios plugin locally (for example, to monitor CPU
usage).
Installing NRPE on host machines
First, you need to create a nagios user and a nagios group and set the user with a
password, as discussed in the Preparation section. After that, you need install the Nagios
plugin as mentioned in the Installing Nagios plugins section. Now, you can install NRPE.
Perform the following steps:
1. Install xinetd if it does not already exist:
$ sudo yum install xinetd
2. Download the NRPE daemon and plugin from the NRPE Nagios page at ht-
tp://exchange.nagios.org/directory/Addons/Monitoring-Agents/NRPE--2D-
Nagios-Remote-Plugin-Executor/details and install them:
# Download and untar NRPE
$ wget http://downloads.sourceforge.net/project/
nagios/nrpe-2.x/nrpe-2.14/nrpe-2.14.tar.gz
$ tar xvzf nrpe-2.14.tar.gz
# make and install daemon and plugin, configure xinetd
$ cd nrpe-2.14
$ ./configure
Search WWH ::




Custom Search