RHEL 6.3 & NRPE Issues
Re: RHEL 6.3 & NRPE Issues
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]#
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]#
Re: RHEL 6.3 & NRPE Issues
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?
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?
Re: RHEL 6.3 & NRPE Issues
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.
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.
Eric Loyd • http://everwatch.global • 844.240.EVER • @EricLoyd
I'm a Nagios Fanatic! • Join our public Nagios Discord Server!
Re: RHEL 6.3 & NRPE Issues
And if you installed from package/rpm/yum, which one did you install?
(my nrpe installed from EPEL ends up in /usr/sbin/nrpe)
(my nrpe installed from EPEL ends up in /usr/sbin/nrpe)
Re: RHEL 6.3 & NRPE Issues
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:
EDIT: I missed this:
So you may want to check /usr/bin as well.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)
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.
"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.
Re: RHEL 6.3 & NRPE Issues
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.
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.
Re: RHEL 6.3 & NRPE Issues
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?
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
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.
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 -nNagios-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.
Re: RHEL 6.3 & NRPE Issues
ARGGHHH!!! The suspense is killing me!!! 
Eric Loyd • http://everwatch.global • 844.240.EVER • @EricLoyd
I'm a Nagios Fanatic! • Join our public Nagios Discord Server!
Re: RHEL 6.3 & NRPE Issues
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!
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!