Let's see how to install NRPE on GNU/Linux, Unix and Windows.
NRPE is a client/server software that allows us to monitor servers, switches, firewalls, etc.
Installing NRPE on Nagios Server
We install dependencies.
root@nagios: # apt-get install xinetd libssl-devWe download NRPE
root@nagios: # wget http://sourceforge.net/projects/nagios/files/nrpe-2.x/nrpe-2.13/nrpe-2.13.tar.gzWe decompress.
root@nagios: # tar xvf nrpe-2.13.tar.gzWe access the directory
root@nagios: # cd nrpe-2.13/We compile
root@nagios: # ./configure
root@nagios: # make all
root@nagios: # make install-plugin
root@nagios: # make install-daemon
root@nagios: # make install-daemon-config
root@nagios: # make install-xinetdEdit /etc/xinetd.d/nrpe to accept requests only from our Nagios Server:
only_from = 127.0.0.1 192.168.1.10We will add the port to /etc/services. NRPE in order to identify the connections
nrpe 5666/tcp # NRPEWe restart xinetd
root@nagios: # /etc/init.d/xinetd restartFunctional tests
root@nagios:# netstat -ant | grep 5666
tcp 0 0 0.0.0.0:5666 0.0.0.0:* LISTEN
root@nagios: # /usr/local/nagios/libexec/check_nrpe -H localhost
NRPE v2.13Installing NRPE on the client in GNU/Linux and UNIX
root@nagios: # wget http://sourceforge.net/projects/nagios/files/nrpe-2.x/nrpe-2.13/nrpe-2.13.tar.gzWe decompress.
root@nagios: # tar xvf nrpe-2.13.tar.gzWe access the directory
root@nagios: # cd nrpe-2.13/We compile
root@nagios: # ./configure –prefix=/opt –with-nagios-user=nagios –with-nagios-group=nagios
root@nagios: # make all
root@nagios: # make install-pluginWe check that it works
netstat -at | grep nrpe
tcp 0 0 *:nrpe *:* LISTENInstalling NRPE on the client on Windows
For the Windows client we can use NSClient++ or nrpe_nt (Among others). In our case I am going to install nrpe_nt
We download nrpe_nt
http://sourceforge.net/projects/nrpent/files/nrpent/
and we unzip it. in my case in C:\nrpe
We access through the CMD
cd c:\nrpe\binWe install…
c:\nrpe\bin>Nrpe_nt.exe -i
NRPE_NT Service sucessfully installed!
c:\nrpe\bin>We start the service
c:\nrpe\bin>net start nrpe_nt
El servicio de Nagios Remote Plugin Executor for NT/W2K está iniciándose.
El servicio de Nagios Remote Plugin Executor for NT/W2K se ha iniciado correctam
ente.
c:\nrpe\bin>Ready, all that remains is to install the plugins that you can download from here:
Regards, rokitoh
:wq!
Comments