bin folder missing from /usr/local/nagios

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
avandemore
Posts: 1597
Joined: Tue Sep 27, 2016 4:57 pm

Re: bin folder missing from /usr/local/nagios

Post by avandemore »

Did you restart the NRPE service after the install?
Previous Nagios employee
katya
Posts: 224
Joined: Mon Aug 18, 2014 9:07 am

Re: bin folder missing from /usr/local/nagios

Post by katya »

root@ssbpmutu:/# svcs -a | grep nrpe
online Nov_12 svc:/network/nrpe/tcp:default

root@ssbpmutu:/# svcadm disable /network/nrpe/tcp
root@ssbpmutu:/# svcs -a | grep nrpe
disabled 4:14:02 svc:/network/nrpe/tcp:default

root@ssbpmutu:/# svcadm enable /network/nrpe/tcp
root@ssbpmutu:/# svcs -a | grep nrpe
online 4:14:22 svc:/network/nrpe/tcp:default

root@ssbpmutu:/usr/local/nagios/libexec# ./check_nrpe -H 127.0.0.1
CHECK_NRPE: Error - Could not complete SSL handshake.
root@ssbpmutu:/usr/local/nagios/libexec#

the same error!
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: bin folder missing from /usr/local/nagios

Post by rkennedy »

What instructions did you follow for installing? These still apply for AIX, regardless of XI. https://assets.nagios.com/downloads/nag ... 1444063497
Former Nagios Employee
katya
Posts: 224
Joined: Mon Aug 18, 2014 9:07 am

Re: bin folder missing from /usr/local/nagios

Post by katya »

but this is nrpe for nagios xi.

Im using nagios core, so installed nrpe-2.15 like all my other servers that working fine.

Only tis server i cant resolve ssl issue.

Can you please let me know what i have missing?
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: bin folder missing from /usr/local/nagios

Post by rkennedy »

rkennedy wrote:What instructions did you follow for installing? These still apply for AIX, regardless of XI. https://assets.nagios.com/downloads/nag ... 1444063497
See my post, the instructions still apply for AIX. For troubleshooting why it's not working, I would look at the syslog on the client machine as it should show the NRPE connection and why it failed.
Former Nagios Employee
katya
Posts: 224
Joined: Mon Aug 18, 2014 9:07 am

Re: bin folder missing from /usr/local/nagios

Post by katya »

Hi,

I checked /var/adm/messages and this is the error i got:

ID 826424 mail.error] error: cannot execute /application/nagios/bin/nrpe: No such file or directory

my question is why it goes to this directory if my nrpe file found under /usr/local/nagios/bin

root@ssbpmutu:/usr/local/nagios/bin# ls -ltr
total 517
-rwxrwxr-x 1 nagios nagios 134024 Nov 9 06:57 nrpe
root@ssbpmutu:/usr/local/nagios/bin#

and one more thing, seems that solaris-nrpe-agent.tar.gz that you suggest in your doc https://assets.nagios.com/downloads/nag ... 1474438292 are corrpeted

root@ssbpmutu:/tmp# gunzip -c solaris-nrpe-agent.tar.gz | tar xf -
tar: directory checksum error
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: bin folder missing from /usr/local/nagios

Post by rkennedy »

I would check your NRPE configuration files, perhaps a grep -R '/applications/nagios/bin/nrpe' / to see if you can find where it's inputted.

As for the agent, I just verified it and it works here without a problem. Could you try redownloading it? Are you seeing something different?

Code: Select all

[root@localhost tmp]# wget http://assets.nagios.com/downloads/nagiosxi/agents/solaris-nrpe-agent.tar.gz
--2016-11-15 11:40:12--  http://assets.nagios.com/downloads/nagiosxi/agents/solaris-nrpe-agent.tar.gz
Resolving assets.nagios.com... 72.14.181.71, 2600:3c00::f03c:91ff:fedf:b821
Connecting to assets.nagios.com|72.14.181.71|:80... connected.
HTTP request sent, awaiting response... 301 Moved Permanently
Location: https://assets.nagios.com/downloads/nagiosxi/agents/solaris-nrpe-agent.tar.gz [following]
--2016-11-15 11:40:12--  https://assets.nagios.com/downloads/nagiosxi/agents/solaris-nrpe-agent.tar.gz
Connecting to assets.nagios.com|72.14.181.71|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 4302965 (4.1M) [application/x-gzip]
Saving to: “solaris-nrpe-agent.tar.gz”

100%[===============================================================================================================================================>] 4,302,965   1.15M/s   in 4.0s

2016-11-15 11:40:16 (1.02 MB/s) - “solaris-nrpe-agent.tar.gz” saved [4302965/4302965]

[root@localhost tmp]# gunzip -c solaris-nrpe-agent.tar.gz | tar xf -
[root@localhost solaris-nrpe-agent]# ls
0-prereqs      3-nrpe           init.sh                                  nrpe                         subcomponents
1-usersgroups  A-subcomponents  nagios-plugins-1.4.16-sol10-i386-local   nrpe-2.14-sol10-i386-local   top-3.6.1-sol10-sparc-local
2-plugins      fullinstall      nagios-plugins-1.4.16-sol10-sparc-local  nrpe-2.14-sol10-sparc-local  top-3.6.1-sol10-x86-local

Former Nagios Employee
katya
Posts: 224
Joined: Mon Aug 18, 2014 9:07 am

Re: bin folder missing from /usr/local/nagios

Post by katya »

root@ssbpmutu:/# find / -name /applications/nagios/bin/nrpe
root@ssbpmutu:/#
i dont have this file.

also in other servers that working good i dont have this path so why on this server it searching on this path?

about the package i try to redownoading and it appers the same issue :(
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: bin folder missing from /usr/local/nagios

Post by rkennedy »

I don't think the file will exist, but the path exists somewhere which is why I proposed running the grep to search your file structure for the path as contents in a file.

Can you show us the full wget headers for it failing? This should help identify why it's not working for you.
Former Nagios Employee
katya
Posts: 224
Joined: Mon Aug 18, 2014 9:07 am

Re: bin folder missing from /usr/local/nagios

Post by katya »

Hi,
It very starnge but if i will run check_nrpe to mu nagios server (10.146.1.100) it will work

root@ssbpmutu:/usr/local/nagios/libexec# ./check_nrpe -H 10.146.1.100
NRPE v2.15

but if i will run to 127.0.0.1 it woul not. why? what is the difference?


root@ssbpmutu:/usr/local/nagios/libexec# ./check_nrpe -H 127.0.0.1
CHECK_NRPE: Error - Could not complete SSL handshake.
Locked