Page 1 of 1

Nagiosxi agent installation issue

Posted: Mon Dec 14, 2015 3:41 am
by inas.labib
Hi,
After installation of nagios xi agent @ client - port 5666 is not listening (nrpe binary not available).
I followed the steps : https://assets.nagios.com/downloads/nag ... _Agent.pdf
Attached install.log as well. Please assist.

OS version : Oracle Linux Server release 6.7

Code: Select all

root@host1:~# netstat -nap |grep -i 5666
root@host1:~#


root@host1:~# /etc/init.d/xinetd restart
Stopping xinetd:                                           [  OK  ]
Starting xinetd:                                           [  OK  ]
root@host1:~# 

root@host1:~# tail /var/log/messages
Dec 13 20:54:48 host1 xinetd[2922]: Server /usr/local/nagios/bin/nrpe is not executable [file=/etc/xinetd.d/nrpe] [line=9]
Dec 13 20:54:48 host1 xinetd[2922]: Error parsing attribute server - DISABLING SERVICE [file=/etc/xinetd.d/nrpe] [line=9]
Dec 13 20:54:48 host1 xinetd[2922]: Must specify a server in nrpe
Dec 13 20:54:48 host1 xinetd[2922]: xinetd Version 2.3.14 started with libwrap loadavg labeled-networking options compiled in.
Dec 13 20:54:48 host1 xinetd[2922]: Started working: 1 available service

root@host1:~# ls -ld  /usr/local/nagios/bin/nrpe
ls: cannot access /usr/local/nagios/bin/nrpe: No such file or directory
root@host1:~#

# locate nrpe
/etc/xinetd.d/nrpe
/usr/local/nagios/etc/nrpe
/usr/local/nagios/etc/nrpe.cfg
/usr/local/nagios/etc/nrpe/.svn
/usr/local/nagios/etc/nrpe/asterisk.cfg
/usr/local/nagios/etc/nrpe/common.cfg
/usr/share/augeas/lenses/dist/nrpe.aug


# cat /etc/xinetd.d/nrpe
service nrpe
{
        flags           = REUSE
        socket_type     = stream
        port            = 5666
        wait            = no
        user            = nagios
        group           = nagios
        server          = /usr/local/nagios/bin/nrpe
        server_args     = -c /usr/local/nagios/etc/nrpe.cfg --inetd
        log_on_failure  += USERID
        disable         = no
        only_from       = <Nagios xi server IP>
}

Re: Nagiosxi agent installation issue

Posted: Mon Dec 14, 2015 10:41 am
by jolson
After you performed this fullinstall, an NRPE binary should have been generated in the src directory of the folder than you ran ./fullinstall from. You should be able to simply copy that binary to /usr/local/nagios/bin/nrpe. Give the following a try:

Code: Select all

find / -name nrpe -type f

Code: Select all

cp /example/nrpe/src/nrpe /usr/local/nagios/bin/

Re: Nagiosxi agent installation issue

Posted: Mon Dec 14, 2015 11:10 am
by inas.labib
Hi ,

Please find the results below.

# find / -name nrpe -type f
/etc/xinetd.d/nrpe
/tmp/linux-nrpe-agent/subcomponents/nrpe/nrpe-2.15/package/solaris/pkg/nrpe


"nrpe " is not available in the installed path

Thanks,

Re: Nagiosxi agent installation issue

Posted: Mon Dec 14, 2015 12:38 pm
by lmiltchev
Try installing NRPE by running:

Code: Select all

cd /tmp/linux-nrpe-agent/subcomponents/nrpe/
./install
Post the output in case you see any errors.

Re: Nagiosxi agent installation issue

Posted: Tue Dec 15, 2015 2:13 am
by inas.labib
Hi ,

Tried as suggested. no luck ,attached the installation log .Kindly assist.

Thanks,

Re: Nagiosxi agent installation issue

Posted: Tue Dec 15, 2015 10:41 am
by tgriep
The install log shows that the SSL headers are not installed on your system so can you login as root and run the following?

Code: Select all

yum install openssl-devel -y
After they are installed, you will have to go to the source folder and re-run the fullinstall

Code: Select all

cd /tmp/linux-nrpe-agent
./fullinstall
Post back any errors if you receive any.

Re: Nagiosxi agent installation issue

Posted: Wed Dec 16, 2015 10:48 am
by inas.labib
Hi ,Thanks for the response. I manually installed openssl-devel and nrpe as suggested . After that nrpe client started working .
Do I need to perform the same for all clients whenever installing nagios agent . Kindly advice .

Re: Nagiosxi agent installation issue

Posted: Wed Dec 16, 2015 11:13 am
by hsmith
If you're running into this issue on them as well, you'll need to.

Re: Nagiosxi agent installation issue

Posted: Sun Dec 27, 2015 2:46 am
by inas.labib
Thanks for the assistance..

Re: Nagiosxi agent installation issue

Posted: Mon Dec 28, 2015 10:25 am
by lmiltchev
I am glad your issue has been resolved! I will be locking this topic. If you have any more questions/issues, please start a new thread. Thanks!