Nagiosxi agent installation issue

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
inas.labib
Posts: 170
Joined: Tue Sep 11, 2012 3:48 am

Nagiosxi agent installation issue

Post 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>
}
You do not have the required permissions to view the files attached to this post.
jolson
Attack Rabbit
Posts: 2560
Joined: Thu Feb 12, 2015 12:40 pm

Re: Nagiosxi agent installation issue

Post 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/
Twits Blog
Show me a man who lives alone and has a perpetually clean kitchen, and 8 times out of 9 I'll show you a man with detestable spiritual qualities.
inas.labib
Posts: 170
Joined: Tue Sep 11, 2012 3:48 am

Re: Nagiosxi agent installation issue

Post 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,
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Nagiosxi agent installation issue

Post 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.
Be sure to check out our Knowledgebase for helpful articles and solutions!
inas.labib
Posts: 170
Joined: Tue Sep 11, 2012 3:48 am

Re: Nagiosxi agent installation issue

Post by inas.labib »

Hi ,

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

Thanks,
You do not have the required permissions to view the files attached to this post.
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: Nagiosxi agent installation issue

Post 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.
Be sure to check out our Knowledgebase for helpful articles and solutions!
inas.labib
Posts: 170
Joined: Tue Sep 11, 2012 3:48 am

Re: Nagiosxi agent installation issue

Post 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 .
User avatar
hsmith
Agent Smith
Posts: 3539
Joined: Thu Jul 30, 2015 11:09 am
Location: 127.0.0.1
Contact:

Re: Nagiosxi agent installation issue

Post by hsmith »

If you're running into this issue on them as well, you'll need to.
Former Nagios Employee.
me.
inas.labib
Posts: 170
Joined: Tue Sep 11, 2012 3:48 am

Re: Nagiosxi agent installation issue

Post by inas.labib »

Thanks for the assistance..
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Nagiosxi agent installation issue

Post 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!
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked