sudo yum install nrpe nagios-plugins nagios-plugins-all
sudo apt-get install nagios-nrpe-server nagios-plugins
Note that recent versions of Ubuntu are compiled to not allow NRPE with arguments passed by the remote server. If that's a problem, follow the following instructions to install from source
Download our source packages:
apt-get source nagios-nrpe-server nagios-plugins
Install nagios/nrpe:
cd nagios-nrpe-2.15/
Configure to use passed arguments, and set the proper locations for ssl:
./configure --enable-command-args --with-ssl=/usr/bin/openssl --with-ssl-lib=/usr/lib/x86_64-linux-gnu
Make and install:
make all
sudo make install
Build our plugins:
cd ../nagios-plugins-1.5/
./configure
make all
sudo make install
If you tried the standard apt-get install
method previously, you'll have a /etc/init.d/nagios-nrpe-server
file already; you'll need to edit this file to set the new location for nrpe, which is this line:
DAEMON=/usr/local/nagios/bin/nrpe
If you are making a new installation, follow the xinetd
instructions.
RHEL flavors only, this is automatic on Debian:
sudo chkconfig --level 2345 nrpe on
sudo vi /etc/nagios/nrpe.cfg
allowed_hosts=127.0.0.1,198.61.253.39,10.177.5.146
dont_blame_nrpe=1
sudo service nrpe start
sudo /etc/init.d/nagios-nrpe-server restart
CREATE USER 'nagios'@'10.177.5.146' IDENTIFIED BY '{{PASSWORD}}';
CREATE DATABASE nagiostest;
GRANT ALL ON nagiostest.* to 'nagios'@'10.177.5.146';
FLUSH PRIVILEGES;