Installing Nagios agent on Ubuntu servers
Posted: Fri Apr 01, 2016 2:49 am
Hi,
We are trying to install Nagios agent on Ubuntu servers. Version 14.04.3
we are executing the below commands and addition to that we are executing the command #./configure where ssl and ssl-lib files are added. In this ssl files are not available in the document which we are executing and let us know it will not affect any production changes while executing it.
Since we are getting below error while executing ./configure without the SSl-lib files.
#./configure --enable-command-args
configure: error: Cannot find ssl libraries
For installing Nagios in Ubuntu servers do we need to install nagios-agent and nrpe both document commands for successful installation.
Referring document Installing-the-Ubuntu-and-Debian-Agent-in-Nagios-XI
#add-apt-repository ppa:nagiosinc/ppa
#apt-get update
#apt-get install nagios-agent
#dpkg-reconfigure nagios-agent
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Referring document How-To-Configure-NRPE-and-Install-From-Source-with-Nagios-XI
#cd /tmp
#wget http://sourceforge.net/projects/nagios/ ... .14.tar.gz
#tar vfxz nrpe-2.14.tar.gz
#cd nrpe-2.14
#./configure --with-ssl=/usr/bin/openssl --with-ssl-lib=/usr/lib/x86_64-linux-gnu which is not in document SSL
#make
#make install
#mkdir /usr/local/nagios/etc
#cp sample-config/nrpe.cfg /usr/local/nagios/etc
#cd /tmp/nrpe-2.14
#make install-xinetd
#Vi /etc/xinetd.d/nrpe
only_from = 127.0.0.1 x.x.x.x
(where x.x.x.x is your Nagios XI server's ip)
Finally, we need to add the nrpe port and service declaration in /etc/services:
#vi /etc/services
Add:
nrpe 5666/tcp
#service xinetd start
#cd /usr/local/nagios/libexec
#./check_nrpe -H localhost
You should see the following output:
NRPE v2.14
If you get the nrpe version number
#/tmp
#wget https://www.nagios-plugins.org/download ... 2.0.tar.gz
#tar zxvf nagios-plugins-2.0.tar.gz
#cd /tmp/nagios-plugins-2.0
#./configure --with-nagios-user=nagios --with-nagios-group=nagios
#make
#make install
To recap, nrpe and the nagios-plugins pack installed to /usr/local/nagios/libexec.
The nrpe.cfg config file is located at /usr/local/nagios/etc.
#vi /usr/local/nagios/etc/nrpe.cfg
allowed_hosts=127.0.0.1,<your Nagios XI IP address>
dont_blame_nrpe=1
#service xinetd status
If service not started start it.
#service xinetd start
We are trying to install Nagios agent on Ubuntu servers. Version 14.04.3
we are executing the below commands and addition to that we are executing the command #./configure where ssl and ssl-lib files are added. In this ssl files are not available in the document which we are executing and let us know it will not affect any production changes while executing it.
Since we are getting below error while executing ./configure without the SSl-lib files.
#./configure --enable-command-args
configure: error: Cannot find ssl libraries
For installing Nagios in Ubuntu servers do we need to install nagios-agent and nrpe both document commands for successful installation.
Referring document Installing-the-Ubuntu-and-Debian-Agent-in-Nagios-XI
#add-apt-repository ppa:nagiosinc/ppa
#apt-get update
#apt-get install nagios-agent
#dpkg-reconfigure nagios-agent
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Referring document How-To-Configure-NRPE-and-Install-From-Source-with-Nagios-XI
#cd /tmp
#wget http://sourceforge.net/projects/nagios/ ... .14.tar.gz
#tar vfxz nrpe-2.14.tar.gz
#cd nrpe-2.14
#./configure --with-ssl=/usr/bin/openssl --with-ssl-lib=/usr/lib/x86_64-linux-gnu which is not in document SSL
#make
#make install
#mkdir /usr/local/nagios/etc
#cp sample-config/nrpe.cfg /usr/local/nagios/etc
#cd /tmp/nrpe-2.14
#make install-xinetd
#Vi /etc/xinetd.d/nrpe
only_from = 127.0.0.1 x.x.x.x
(where x.x.x.x is your Nagios XI server's ip)
Finally, we need to add the nrpe port and service declaration in /etc/services:
#vi /etc/services
Add:
nrpe 5666/tcp
#service xinetd start
#cd /usr/local/nagios/libexec
#./check_nrpe -H localhost
You should see the following output:
NRPE v2.14
If you get the nrpe version number
#/tmp
#wget https://www.nagios-plugins.org/download ... 2.0.tar.gz
#tar zxvf nagios-plugins-2.0.tar.gz
#cd /tmp/nagios-plugins-2.0
#./configure --with-nagios-user=nagios --with-nagios-group=nagios
#make
#make install
To recap, nrpe and the nagios-plugins pack installed to /usr/local/nagios/libexec.
The nrpe.cfg config file is located at /usr/local/nagios/etc.
#vi /usr/local/nagios/etc/nrpe.cfg
allowed_hosts=127.0.0.1,<your Nagios XI IP address>
dont_blame_nrpe=1
#service xinetd status
If service not started start it.
#service xinetd start