NRPE RHEL 5.7 Installation step failed - exiting.

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
nyoung
Posts: 24
Joined: Thu Mar 28, 2013 3:08 pm

NRPE RHEL 5.7 Installation step failed - exiting.

Post by nyoung »

I'm trying to install NRPE on a Red Hat Enterprise Linux Server release 5.7 (Tikanga) box and I am coming across with this error below. I typically work in a windows environment and the few linux machines that have NRPE are centos 5 (never had any problems following the instructions in the pdf). Is there a workaround?

Code: Select all

cd /tmp
wget http://assets.nagios.com/downloads/nagiosxi/agents/linux-nrpe-agent.tar.gz
tar xzf linux-nrpe-agent.tar.gz
cd linux-nrpe-agent
./fullinstall

Code: Select all

INSTALLING EXTRA PLUGINS...

real    0m0.005s
user    0m0.002s
sys     0m0.003s
sed: can't read /etc/xinetd.d/nrpe: No such file or directory
Subcomponents installation failed - exiting
RESULT=1

===================
INSTALLATION ERROR!
===================
Installation step failed - exiting.
Check for error messages in the install log (install.log).

If you require assistance in resolving the issue, please include install.log
in your communications with Nagios XI technical support.

The script that failed was: './A-subcomponents'
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: NRPE RHEL 5.7 Installation step failed - exiting.

Post by abrist »

Are you installing this as root? These directories should be created during the install, but you need to run the ./fullinstall from the /tmp directory as root.
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.
nyoung
Posts: 24
Joined: Thu Mar 28, 2013 3:08 pm

Re: NRPE RHEL 5.7 Installation step failed - exiting.

Post by nyoung »

Yes, I am doing this as root. I have successfully followed these steps many times with Centos.
I do see NSCA but not NRPE. (not even /usr/local/nagios/bin/nrpe)
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: NRPE RHEL 5.7 Installation step failed - exiting.

Post by scottwilkerson »

Can you run the following on the server and report what happens

Code: Select all

yum install xinetd
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
nyoung
Posts: 24
Joined: Thu Mar 28, 2013 3:08 pm

Re: NRPE RHEL 5.7 Installation step failed - exiting.

Post by nyoung »

Code: Select all

[root@hqdw1 upgrade]# yum install xinetd
Loaded plugins: product-id, security, subscription-manager
Updating Red Hat repositories.
epel                                                                     | 3.6 kB     00:00
Setting up Install Process
Nothing to do
[root@hqdw1 upgrade]#
sreinhardt
-fno-stack-protector
Posts: 4366
Joined: Mon Nov 19, 2012 12:10 pm

Re: NRPE RHEL 5.7 Installation step failed - exiting.

Post by sreinhardt »

OK, it seems that it tried to install, but isn't listing what steps it has taken. Just to be 100% sure try:

yum list installed xinitd
rpm -qa | grep xinetd
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.
nyoung
Posts: 24
Joined: Thu Mar 28, 2013 3:08 pm

Re: NRPE RHEL 5.7 Installation step failed - exiting.

Post by nyoung »

Code: Select all

[root@hqdw1 ~]# yum list installed xinitd
Loaded plugins: product-id, security, subscription-manager
Updating Red Hat repositories.
epel                                                     | 3.6 kB     00:00
Error: No matching Packages to list

[root@hqdw1 ~]# rpm -qa | grep xinetd
xinetd-2.3.14-13.el5
sreinhardt
-fno-stack-protector
Posts: 4366
Joined: Mon Nov 19, 2012 12:10 pm

Re: NRPE RHEL 5.7 Installation step failed - exiting.

Post by sreinhardt »

There is definitely something wrong with yum, have your registered your redhat installation?

Code: Select all

subscription-manager list | grep Status:
rhn_check
Then lets check what channels you are subscribed to:

Code: Select all

yum repolist all 
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.
nyoung
Posts: 24
Joined: Thu Mar 28, 2013 3:08 pm

Re: NRPE RHEL 5.7 Installation step failed - exiting.

Post by nyoung »

Does this mean that the system is not registered? It is a dev box purchased from ibm.

Code: Select all

[root@hqdw1 ~]# subscription-manager list
Error: You need to register this system by running `register` command before using this option.

Code: Select all

[root@hqdw1 ~]# yum repolist all
Loaded plugins: product-id, security, subscription-manager
Updating Red Hat repositories.
epel                                                     | 3.6 kB     00:00
epel/primary_db                                          | 3.8 MB     00:03
repo id                repo name                                  status
epel                   Extra Packages for Enterprise Linux 5 - x8 enabled: 7,363
epel-debuginfo         Extra Packages for Enterprise Linux 5 - x8 disabled
epel-source            Extra Packages for Enterprise Linux 5 - x8 disabled
epel-testing           Extra Packages for Enterprise Linux 5 - Te disabled
epel-testing-debuginfo Extra Packages for Enterprise Linux 5 - Te disabled
epel-testing-source    Extra Packages for Enterprise Linux 5 - Te disabled
rhel-debuginfo         Red Hat Enterprise Linux 5Server - x86_64  disabled
rhel-debuginfo-beta    Red Hat Enterprise Linux 5Server Beta - x8 disabled
rhel-source            Red Hat Enterprise Linux 5Server - Source  disabled
repolist: 7,363
[root@hqdw1 ~]#
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: NRPE RHEL 5.7 Installation step failed - exiting.

Post by slansing »

Yes the system should have to be registered before you have access to certain "if not all" repos from your RHEL server.

https://access.redhat.com/site/document ... ments.html
Locked