nrpe installation failed

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
rtsupport
Posts: 188
Joined: Mon Jan 08, 2018 4:30 am

nrpe installation failed

Post by rtsupport »

Hi team,

While installing nrpe client we are getting error (Please refer attached install.log).

Have configured proxy referring -- https://support.nagios.com/kb/article.php?id=147.
yum repolist
Loaded plugins: product-id, search-disabled-repos, subscription-manager
This system is not registered with an entitlement server. You can use subscription-manager to register.
repo id repo name status
epel/x86_64 Extra Packages for Enterprise Linux 7 - x86_64 13,124
repolist: 13,124
You do not have the required permissions to view the files attached to this post.
npolovenko
Support Tech
Posts: 3457
Joined: Mon May 15, 2017 5:00 pm

Re: nrpe installation failed

Post by npolovenko »

@rtsupport, Please install the following packages:

Code: Select all

yum install -y gcc glibc glibc-common openssl openssl-devel perl wget
But also, your system needs to be registered with RedHat subscription manager.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
rtsupport
Posts: 188
Joined: Mon Jan 08, 2018 4:30 am

Re: nrpe installation failed

Post by rtsupport »

gcc library are installed ..
Installed:
gcc.x86_64 0:4.8.5-36.el7_6.2 openssl-devel.x86_64 1:1.0.2k-16.el7_6.1

Dependency Installed:
cpp.x86_64 0:4.8.5-36.el7_6.2 glibc-devel.x86_64 0:2.17-260.el7_6.5 glibc-headers.x86_64 0:2.17-260.el7_6.5 kernel-headers.x86_64 0:3.10.0-957.12.2.el7
keyutils-libs-devel.x86_64 0:1.5.8-3.el7 krb5-devel.x86_64 0:1.15.1-37.el7_6 libcom_err-devel.x86_64 0:1.42.9-13.el7 libkadm5.x86_64 0:1.15.1-37.el7_6
libmpc.x86_64 0:1.0.1-3.el7 libselinux-devel.x86_64 0:2.5-14.1.el7 libsepol-devel.x86_64 0:2.5-10.el7 libverto-devel.x86_64 0:0.2.5-4.el7
mpfr.x86_64 0:3.1.1-4.el7 pcre-devel.x86_64 0:8.32-17.el7 zlib-devel.x86_64 0:1.2.7-18.el7

Updated:
glibc.x86_64 0:2.17-260.el7_6.5 glibc-common.x86_64 0:2.17-260.el7_6.5 openssl.x86_64 1:1.0.2k-16.el7_6.1 perl.x86_64 4:5.16.3-294.el7_6
wget.x86_64 0:1.14-18.el7_6.1

Dependency Updated:
e2fsprogs.x86_64 0:1.42.9-13.el7 e2fsprogs-libs.x86_64 0:1.42.9-13.el7 krb5-libs.x86_64 0:1.15.1-37.el7_6 libcom_err.x86_64 0:1.42.9-13.el7
libgcc.x86_64 0:4.8.5-36.el7_6.2 libgomp.x86_64 0:4.8.5-36.el7_6.2 libselinux.x86_64 0:2.5-14.1.el7 libselinux-python.x86_64 0:2.5-14.1.el7
libselinux-utils.x86_64 0:2.5-14.1.el7 libsepol.x86_64 0:2.5-10.el7 libss.x86_64 0:1.42.9-13.el7 openssl-libs.x86_64 1:1.0.2k-16.el7_6.1
perl-libs.x86_64 4:5.16.3-294.el7_6 zlib.x86_64 0:1.2.7-18.el7

Complete!
and after that while running ./fullinstallation getting another error.
[root@usa0***** linux-nrpe-agent]# grep xinetd install.log
No package xinetd available.
config.status: creating startup/default-xinetd
Failed to restart xinetd.service: Unit not found.
sed: can't read /etc/xinetd.d/nrpe: No such file or directory
sed: can't read /etc/xinetd.d/nrpe: No such file or directory
Failed to restart xinetd.service: Unit not found.
sed: can't read /etc/xinetd.d/nrpe: No such file or directory
Have sent install.log in private chat.
npolovenko
Support Tech
Posts: 3457
Joined: Mon May 15, 2017 5:00 pm

Re: nrpe installation failed

Post by npolovenko »

@rtsupport, Looks like your server is not registered with the RedHat subscription server:

Code: Select all

This system is not registered with an entitlement server. You can use subscription-manager to register.
https://access.redhat.com/solutions/253273

Once you register RedHat please rerun the installation.

Also, the error says that no package xinetd is available. Run:

Code: Select all

 yum provides xinetd
yum install xinetd
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
rtsupport
Posts: 188
Joined: Mon Jan 08, 2018 4:30 am

Re: nrpe installation failed

Post by rtsupport »

thanks,

subscription was there, and after running below xinetd nagios client is installed.

but now from our nagios server while checking nrpe status getting below error.

Code: Select all

[nagios@usa***** libexec]$ ./check_nrpe -H usa0*****
CHECK_NRPE: Socket timeout after 10 seconds.

[nagios@usa*********libexec]$ ./check_nrpe -H usa0****** -t 20
CHECK_NRPE: Socket timeout after 20 seconds.
from one of the collector server

Code: Select all

-bash-4.1$ ./check_nrpe -H usa*****
connect to address 13.11.11.11 port 5666: Connection refused
connect to host usa***** port 5666: Connection refused


-bash-4.1$ telnet usa***** 5666
Trying 13.11.11.11...
telnet: connect to address 13.11.11.11: Connection refused
npolovenko
Support Tech
Posts: 3457
Joined: Mon May 15, 2017 5:00 pm

Re: nrpe installation failed

Post by npolovenko »

@rtsupport, From both servers run nmap towards the NRPE server to see if the port 5666 is open.

Make sure there's no firewall on the nrpe server preventing connections.

Did you add both XI server IP addresses to the only_from line in the /etc/xinetd.d/nrpe file? Restart the npre service with:

Code: Select all

service xinetd restart
Look into syslog on the nrpe server for any error messages.

Code: Select all

/var/log/messages
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
rtsupport
Posts: 188
Joined: Mon Jan 08, 2018 4:30 am

Re: nrpe installation failed

Post by rtsupport »

Verified IP's are added in nrpe file, services restarted also.

seems there is firewall issue -

Code: Select all

bash-4.1$ nmap usa0******** -Pn -p 5666

Starting Nmap 5.51 ( http://nmap.org ) at 2019-05-30 13:42 EDT
Nmap scan report for usa0300lgec01 (13.11.11.11)
Host is up (0.00042s latency).
rDNS record for 13.11.11.11: usa0*******
PORT     STATE  SERVICE
5666/tcp closed nrpe

Nmap done: 1 IP address (1 host up) scanned in 0.20 seconds

Code: Select all

 nmap usa****** -Pn -p 5666

Starting Nmap 5.51 ( http://nmap.org ) at 2019-05-30 10:42 PDT
Nmap scan report for usa0300lgec01 (13.11.11.11)
Host is up.
rDNS record for 13.11.11.11: usa0********
PORT     STATE    SERVICE
5666/tcp filtered nrpe

Nmap done: 1 IP address (1 host up) scanned in 2.15 seconds
npolovenko
Support Tech
Posts: 3457
Joined: Mon May 15, 2017 5:00 pm

Re: nrpe installation failed

Post by npolovenko »

@rtsupport, Try these commands to open up firewall on the NRPE server:

Code: Select all

iptables -I INPUT -p tcp --destination-port 5666 -j ACCEPT
service iptables save
ip6tables -I INPUT -p tcp --destination-port 5666 -j ACCEPT
service ip6tables save
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
rtsupport
Posts: 188
Joined: Mon Jan 08, 2018 4:30 am

Re: nrpe installation failed

Post by rtsupport »

thank you! for sharing the steps --

as we do not have os firewall enabled need to work with firewall team to enable 5666 port will get back to you once have update from network team.

so i have to request only 5666 port to be enable or 4780 as well ? or if any other as per your suggestion
npolovenko
Support Tech
Posts: 3457
Joined: Mon May 15, 2017 5:00 pm

Re: nrpe installation failed

Post by npolovenko »

@rtsupport, It's 5666 for check_nrpe and 12489 for check_nt. Not sure what you're using the port 4780 for?
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Locked