-
Notifications
You must be signed in to change notification settings - Fork 4
Home
Benoît Chauvet edited this page May 19, 2014
·
8 revisions
cd /opt
sudo git clone https://github.com/Orabig/Sbire.git
sudo apt-get install git nagios-nrpe-server
(or manual installation:)
Look for last version at http://sourceforge.net/projects/nagios/files/nrpe-2.x/
groupadd -g 9000 nagios
useradd -u 9000 -g nagios -d /usr/local/nagios -c "Nagios NRPE" nagios
cd /usr/src
wget http://prdownloads.sourceforge.net/sourceforge/nagios/nrpe-2.15.tar.gz
cd nrpe-2.15
./configure --sysconfdir=/etc/nagios --enable-ssl --enable-command-args
make all
make install
cp init-script.debian /etc/init.d/nrpe
mkdir /etc/nagios
cp sample-config/nrpe.cfg /etc/nagios/
chown -R nagios:nagios /etc/nagios/
cd ..
rm -rf nrpe*
ln -s /opt/Sbire/server_side/sbire.nrpe.cfg /etc/nagios/nrpe.d/sbire.cfg
sudo vi /etc/nagios/nrpe.cfg
sudo chown nagios. /etc/nagios
sudo mkdir /var/nagios
sudo chown nagios. /var/nagios
Change dont_blame_nrpe
parameter to 1, and add the following line to the bottom of this file :
command[sbire]=/opt/adm/Sbire/server_side/sbire.pl /etc/nagios/sbire.cfg allowed_host
parameter, or (much better) put the IP address of your central server.
sudo /etc/init.d/nrpe restart
sudo apt-get update
sudo apt-get install nagios-nrpe-plugin
cd /opt
sudo git clone https://github.com/Orabig/Sbire.git
The client cannot connect, and the /var/log/syslog looks like this :
May 19 05:24:50 xerces nrpe[18252]: Connection from 176.31.2.1 port 61090
May 19 05:24:50 xerces nrpe[18252]: Host address is in allowed_hosts
May 19 05:24:50 xerces nrpe[18252]: Handling the connection...
May 19 05:24:50 xerces nrpe[18252]: Error: Could not complete SSL handshake. 1
May 19 05:24:50 xerces nrpe[18252]: Connection from 176.31.2.1 closed.
This is either an issue with the allowed_host
parameter (check this first), or an unsolved problem with OpenSSL. In the latest case, you may add -n to the daemon launch lines in the init.d file.