NRPE agent not working on Oracle Linux 7
Re: NRPE agent not working on Oracle Linux 7
The libmcrypt and libmcrypt-devel libraries have been installed. Do I need to remove the old NRPE before re-installing it?
Re: NRPE agent not working on Oracle Linux 7
Try re-running the install again, and post the result back to us.
Former Nagios Employee
Re: NRPE agent not working on Oracle Linux 7
Here is the result of the re-installation:
Your system $PATH does not include /sbin and /usr/sbin. This is usually the result of installing GNOME rather than creating a clean system.
Adding /sbin and /usr/sbin to $PATH.
============================
Nagios Linux Agent Installer
============================
This script will install the Nagios Linux Agent by executing all necessary
sub-scripts.
IMPORTANT: This script should only be used on a clean installed system:
RedHat Enterprise, CentOS, Fedora, or Oracle
OpenSUSE or SUSE Enterprise
Ubuntu or Debian
Do NOT use this on a system running any other distro or that
does not allow additional package installation.
Do you want to continue? [Y/n] Y
Proceeding with installation...
Running './0-repos'...
Repos already configured - exiting.
RESULT=0
Running './1-prereqs'...
Prereqs already installed - skipping...
RESULT=0
Running './2-usersgroups'...
Users/groups already configured - skipping.
RESULT=0
Running './3-services'...
/etc/services already updated - skipping.
RESULT=0
Running './4-firewall'...
Firewall rules already configured - skipping.
RESULT=0
Running './A-subcomponents'...
Subcomponents already configured - skipping.
RESULT=0
##########################################################
### ###
### Nagios XI Linux Agent Installation Complete! ###
### ###
##########################################################
If you experience any problems, please attach the file install.log that was just created to any support requests.
Re: NRPE agent not working on Oracle Linux 7
It seems that the nrpe binary doesn't exist still.
Re: NRPE agent not working on Oracle Linux 7
We'll need to removed your installed.* files to get the installation to redo itself from the start. Try the following:
Change directory to your NRPE install folder (mine is in tmp)
Remove all installed.* files and attempt a reinstall:
Let me know the results of the above, thanks!
Change directory to your NRPE install folder (mine is in tmp)
Code: Select all
cd /tmp/linux-nrpe-agentCode: Select all
rm -f installed.*
./fullinstallRe: NRPE agent not working on Oracle Linux 7
The re-install is complete. The log file is attached. Thanks!
You do not have the required permissions to view the files attached to this post.
Re: NRPE agent not working on Oracle Linux 7
I found the above in your install.log file - please verify that you have the following packages on your system:checking for SSL headers... configure: error: Cannot find ssl headers
Code: Select all
[root@localhost linux-nrpe-agent]# rpm -qa | grep header
libevent-headers-1.4.13-4.el6.noarch
kernel-headers-2.6.32-504.23.4.el6.x86_64
glibc-headers-2.12-1.166.el6_7.3.x86_64
[root@localhost linux-nrpe-agent]# rpm -qa | grep ssl
openssl-devel-1.0.1e-42.el6_7.2.x86_64
mod_ssl-2.2.15-39.el6.centos.x86_64
openssl-1.0.1e-42.el6_7.2.x86_64Code: Select all
yum install <packagename>Code: Select all
which opensslCode: Select all
rm -rf installed.*
./fullinstallRe: NRPE agent not working on Oracle Linux 7
It looks much better this time. I am able to find check_nrpe:
# find / -name check_nrpe
/tmp/nagjos/linux-nrpe-agent/subcomponents/nrpe/nrpe-2.15/src/check_nrpe
/usr/local/nagios/libexec/check_nrpe
# netstat -pant | grep 5666
tcp6 0 0 :::5666 :::* LISTEN 44031/xinetd
But still got error:
# /usr/local/nagios/libexec/check_nrpe -H 127.0.0.1
CHECK_NRPE: Error - Could not complete SSL handshake.
# find / -name check_nrpe
/tmp/nagjos/linux-nrpe-agent/subcomponents/nrpe/nrpe-2.15/src/check_nrpe
/usr/local/nagios/libexec/check_nrpe
# netstat -pant | grep 5666
tcp6 0 0 :::5666 :::* LISTEN 44031/xinetd
But still got error:
# /usr/local/nagios/libexec/check_nrpe -H 127.0.0.1
CHECK_NRPE: Error - Could not complete SSL handshake.
Re: NRPE agent not working on Oracle Linux 7
Good! It sounds like the binary is working - lets verify that it exists.
SSL may not be working - try using check_nrpe without SSL for now:
Is localhost allowed in your xinetd configuration file?
If 127.0.0.1 is not in your allowed_hosts definition, you will not be able to run the check locally without issues. Check on that please. Thank you!
Code: Select all
ls -l ls -l /usr/sbin/nrpeCode: Select all
/usr/local/nagios/libexec/check_nrpe -H 127.0.0.1 -nCode: Select all
cat /etc/xinetd.d/nrpeRe: NRPE agent not working on Oracle Linux 7
1. # ls -l /usr/sbin/nrpe
ls: cannot access /usr/sbin/nrpe: No such file or directory
2. # /usr/local/nagios/libexec/check_nrpe -H 127.0.0.1 -n
CHECK_NRPE: Error receiving data from daemon.
3. # cat /etc/xinetd.d/nrpe
# default: on
# description: NRPE (Nagios Remote Plugin Executor)
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 = 10.200.160.93 127.0.0.1
}
ls: cannot access /usr/sbin/nrpe: No such file or directory
2. # /usr/local/nagios/libexec/check_nrpe -H 127.0.0.1 -n
CHECK_NRPE: Error receiving data from daemon.
3. # cat /etc/xinetd.d/nrpe
# default: on
# description: NRPE (Nagios Remote Plugin Executor)
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 = 10.200.160.93 127.0.0.1
}