RHEL 6.3 & NRPE Issues

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.
00_kl250
Posts: 63
Joined: Tue Apr 16, 2013 7:26 am

Re: RHEL 6.3 & NRPE Issues

Post by 00_kl250 »

Intertsting.

There is no path for /usr/local/nagios/bin/nrpe

the furthest i can go is /usr/local/nagios, there is no bin directory in the nagios folder. I'm guessing xinetd is trying to find the nrpe executble in the bin directory but it's not there?

login as: root
root@ password:
Last login: Thu Sep 11 14:12:30 2014
[root@ ~]# ls -l /usr/local/nagios/bin/nrpe
ls: cannot access /usr/local/nagios/bin/nrpe: No such file or directory
[root@ ~]# ls -la /usr/local/nagios/bin/nrpe
ls: cannot access /usr/local/nagios/bin/nrpe: No such file or directory
[root@ ~]# cd /usr/local/nagios/bin
-bash: cd: /usr/local/nagios/bin: No such file or directory
[root@ ~]# cd /usr/local
[root@ local]# cd nagios
[root@ nagios]# cd bin
-bash: cd: bin: No such file or directory
[root@ nagios]# ls
etc include libexec share
[root@ nagios]#
00_kl250
Posts: 63
Joined: Tue Apr 16, 2013 7:26 am

Re: RHEL 6.3 & NRPE Issues

Post by 00_kl250 »

This has to be the issue.

On one of my suse servers, in the /usr/local/nagios directory there is a bin folder with nrpe executable in it.

In my RHEL box, there is no bin directory under /usr/local/nagios.

So it would make sense why i'm getting the error:

cannot access /usr/local/nagios/bin/nrpe: No such file or directory

Any idea why there is no /bin directory with nrpe executable? Any clue on how to fix it?
User avatar
eloyd
Cool Title Here
Posts: 2190
Joined: Thu Sep 27, 2012 9:14 am
Location: Rochester, NY
Contact:

Re: RHEL 6.3 & NRPE Issues

Post by eloyd »

I'm too lazy to go back and read all the previous notes.

Did you install from source or package? Either way, reinstall. If it was from source, CHECK every line of output to see if it was an error before moving on.
Image
Eric Loyd • http://everwatch.global • 844.240.EVER • @EricLoyd
I'm a Nagios Fanatic! • Join our public Nagios Discord Server!
User avatar
millisa
Posts: 69
Joined: Thu Jan 16, 2014 11:13 pm
Location: Austin, TX
Contact:

Re: RHEL 6.3 & NRPE Issues

Post by millisa »

And if you installed from package/rpm/yum, which one did you install?
(my nrpe installed from EPEL ends up in /usr/sbin/nrpe)
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: RHEL 6.3 & NRPE Issues

Post by abrist »

Installing from source or yum (pretty much all installation methods for rhel/centos) should install nrpe to the default location: /usr/local/nagios/bin. If it is not there, the configure, make, or make install most likely failed. Do as eloyd suggested and reinstall nrpe. Keep a careful eye out for any errors.

EDIT: I missed this:
millisa wrote:And if you installed from package/rpm/yum, which one did you install?
(my nrpe installed from EPEL ends up in /usr/sbin/nrpe)
So you may want to check /usr/bin as well.
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
00_kl250
Posts: 63
Joined: Tue Apr 16, 2013 7:26 am

Re: RHEL 6.3 & NRPE Issues

Post by 00_kl250 »

Gents,

I installed by downloading nrpe from http://sourceforge.net/projects/nagios/files/nrpe-2.x/

I do not see nrpe in /usr/bin or /usr/sbin.

I will try and a reinstall today and report back with findings.

Thanks for all the help.
00_kl250
Posts: 63
Joined: Tue Apr 16, 2013 7:26 am

Re: RHEL 6.3 & NRPE Issues

Post by 00_kl250 »

Ok.

So i did a reinstall. Now I have some other issues.

When I run netstat -at | grep nrpe I get the following:

getnameinfo failed
getnameinfo failed
getnameinfo failed
getnameinfo failed
getnameinfo failed
getnameinfo failed
tcp 0 0 *:nrpe *:* LISTEN

It looks like it's working but i've never seen that "getnameinfo failed" error before.

Then when I run

[root@TDMAURCMESERV32 bin]# /usr/local/nagios/libexec/check_nrpe -H localhost
CHECK_NRPE: Error - Could not complete SSL handshake.


Any thoughts?
sreinhardt
-fno-stack-protector
Posts: 4366
Joined: Mon Nov 19, 2012 12:10 pm

Re: RHEL 6.3 & NRPE Issues

Post by sreinhardt »

getnameinfo is simply stating that it could not resolve a dns name to an IP. Is your dns server accessible?

Agreed, looks like xinetd is at least starting to listen on that port. Let's see if you compiled without ssl by chance.

Code: Select all

/usr/local/nagios/libexec/check_nrpe -H localhost -n
Nagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.
User avatar
eloyd
Cool Title Here
Posts: 2190
Joined: Thu Sep 27, 2012 9:14 am
Location: Rochester, NY
Contact:

Re: RHEL 6.3 & NRPE Issues

Post by eloyd »

ARGGHHH!!! The suspense is killing me!!! :?:
Image
Eric Loyd • http://everwatch.global • 844.240.EVER • @EricLoyd
I'm a Nagios Fanatic! • Join our public Nagios Discord Server!
00_kl250
Posts: 63
Joined: Tue Apr 16, 2013 7:26 am

Re: RHEL 6.3 & NRPE Issues

Post by 00_kl250 »

Ok, i'm a bit of a linux noob so please bear with me.

I don't think dns is running because:

[root~]# host -t a google.com
;; connection timed out; trying next origin
;; connection timed out; no servers could be reached


When I jump to my suse box, I get the following:

tdtch-rtd1:~ # host -t a google.com
google.com has address 74.125.228.0
google.com has address 74.125.228.4
google.com has address 74.125.228.7
google.com has address 74.125.228.5
google.com has address 74.125.228.3
google.com has address 74.125.228.2
google.com has address 74.125.228.9
google.com has address 74.125.228.14
google.com has address 74.125.228.1
google.com has address 74.125.228.6
google.com has address 74.125.228.8


So it looks like DNS is not running? Do i just need to edit the /etc/resolv.conf file for an entry of the local server(127.0.0.1 point to local host?)

When I run /usr/local/nagios/libexec/check_nrpe -H localhost -n I get:


[root@ etc]# /usr/local/nagios/libexec/check_nrpe -H localhost -n
CHECK_NRPE: Error receiving data from daemon.

Thanks for the help!
Locked