NRPE on Ubuntu
Environment
Allow Nagios to monitor local resources on remote Linux machines
Procedures
Need to install Nagios plugins and add Nagios user account, view http://gayt.blogspot.com/2008/10/nagios-3-on-ubuntu.html
Install xinetd and libssl-dev
Extract and install on remote Linux machines
- Ubuntu 8.04
Allow Nagios to monitor local resources on remote Linux machines
Procedures
Need to install Nagios plugins and add Nagios user account, view http://gayt.blogspot.com/2008/10/nagios-3-on-ubuntu.html
Install xinetd and libssl-dev
#apt-get install libssl-dev xinetdDownload NREP via www.nagios.org
Extract and install on remote Linux machines
#tar zxvf nrpe-{version}.tar.gzEdit /etc/services
#./nrpe-{version}/configure
#./nrpe-{version}/make all
#./nrpe-{version}/make install-plugin
#./nrpe-{version}/make install-daemon
#./nrpe-{version}/make install-daemon-config
#./nrpe-{version}/make install-xinetd
nrpe 5666/tcp #nrpeRestart xinetd service
#/etc/init.d/xinetd restartEdit NRPE commands on remote Linux machines, which is for enable Nagios host to check the remote Linux machines
#vim /usr/local/nagios/etc/nrpe.cfgInstall NRPE on Nagios host
#tar zxvf nrpe-{version}.tar.gzEdit commands.cfg for NRPE command to allow Nagios to use NRPE.
#./nrpe-{version}/configure
#./nrpe-{version}/make all
#./nrpe-{version}/make install-plugin
#vim /usr/local/nagios/etc/commands.cfgThe ARG1 should be the service which is set on nrpe.cfg. It already sets some services, for example, check_load. Use this on Nagios
define command {
command_name check_nrpe
command_line $USER1$/check_nrpe -H $HOSTADDRESS$ -c $ARG1$
}
define service{Reference
use generic-service
host_name hostname
service_description CPU Load
check_command check_nrpe!check_load
}
- NRPE CHECK_NRPE: Error - Could not complete SSL handshake: http://www.nagios.org/faqs/viewfaq.php?faq_id=191