Error getting NRPE to install on Redhat 8

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
HIINNS
Posts: 172
Joined: Wed Mar 14, 2018 9:43 am

Re: Error getting NRPE to install on Redhat 8

Post by HIINNS »

My mistake. When I try running the services (CPU, disk, Memory etc.) no data is returned. I checked the /etc/xinetd.d/nrpe file and everything is in order. Any suggestion on where to look??
HIINNS
Posts: 172
Joined: Wed Mar 14, 2018 9:43 am

Re: Error getting NRPE to install on Redhat 8

Post by HIINNS »

I looked further and the /usr/local/nagios/bin/nrpe file does not exist. Any recommendations?
HIINNS
Posts: 172
Joined: Wed Mar 14, 2018 9:43 am

Re: Error getting NRPE to install on Redhat 8

Post by HIINNS »

Got the following when installing nrpe.

yum localinstall nrpe-4.0.3-6.el8.x86_64.rpm
Updating Subscription Management repositories.
Red Hat Satellite Tools 6.8 for RHEL 8 x86_64 (RPMs) 47 kB/s | 2.1 kB 00:00
Red Hat Enterprise Linux 8 for x86_64 - AppStream (RPMs) 78 kB/s | 2.8 kB 00:00
Red Hat Enterprise Linux 8 for x86_64 - BaseOS (RPMs) 61 kB/s | 2.4 kB 00:00
Dependencies resolved.
================================================================================================================================================
Package Architecture Version Repository Size
================================================================================================================================================
Installing:
nrpe x86_64 4.0.3-6.el8 @commandline 270 k

Transaction Summary
================================================================================================================================================
Install 1 Package

Total size: 270 k
Installed size: 373 k
Is this ok [y/N]: y
Downloading Packages:
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
Preparing : 1/1
Running scriptlet: nrpe-4.0.3-6.el8.x86_64 1/1
Installing : nrpe-4.0.3-6.el8.x86_64 1/1
Running scriptlet: nrpe-4.0.3-6.el8.x86_64 1/1
Verifying : nrpe-4.0.3-6.el8.x86_64 1/1
Installed products updated.
Pipe does not exist (/var/run/fapolicyd/fapolicyd.fifo)
Perhaps fapolicy-plugin does not have enough permissions
or fapolicyd is not running...

Installed:
nrpe-4.0.3-6.el8.x86_64

Complete!
gsmith
Posts: 1253
Joined: Tue Mar 02, 2021 11:15 am

Re: Error getting NRPE to install on Redhat 8

Post by gsmith »

Hi

What is the result of:

Code: Select all

sudo systemctl status fapolicyd.service
Thanks
HIINNS
Posts: 172
Joined: Wed Mar 14, 2018 9:43 am

Re: Error getting NRPE to install on Redhat 8

Post by HIINNS »

fapolicyd.service - File Access Policy Daemon
Loaded: loaded (/usr/lib/systemd/system/fapolicyd.service; disabled; vendor preset: disabled)
Active: inactive (dead)
gsmith
Posts: 1253
Joined: Tue Mar 02, 2021 11:15 am

Re: Error getting NRPE to install on Redhat 8

Post by gsmith »

Hi

Please run:

Code: Select all

yum remove nagiosxi-deps-el8-5.8.4-1.noarch
then rename the attached file from nagios-common-4.4.6-4.el8.x86_64.txt to nagios-common-4.4.6-4.el8.x86_64.rpm
and put it in /tmp
install the attached file:

Code: Select all

yum install nagios-common-4.4.6-4.el8.x86_64
next:

Code: Select all

yum install nrpe
Let me know what happens.

Thanks
You do not have the required permissions to view the files attached to this post.
HIINNS
Posts: 172
Joined: Wed Mar 14, 2018 9:43 am

Re: Error getting NRPE to install on Redhat 8

Post by HIINNS »

yum remove nagiosxi-deps-el8-5.8.4-1.noarch
Updating Subscription Management repositories.
No match for argument: nagiosxi-deps-el8-5.8.4-1.noarch
No packages marked for removal.
Dependencies resolved.
Nothing to do.
Complete!

yum install nagios-common-4.4.6-4.el8.x86_64
Updating Subscription Management repositories.
Red Hat Satellite Tools 6.8 for RHEL 8 x86_64 (RPMs) 51 kB/s | 2.1 kB 00:00
Red Hat Enterprise Linux 8 for x86_64 - AppStream (RPMs) 75 kB/s | 2.8 kB 00:00
Red Hat Enterprise Linux 8 for x86_64 - BaseOS (RPMs) 53 kB/s | 2.4 kB 00:00
Package nagios-common-4.4.6-4.el8.x86_64 is already installed.
Dependencies resolved.
Nothing to do.

yum install nrpe
Updating Subscription Management repositories.
Red Hat Satellite Tools 6.8 for RHEL 8 x86_64 (RPMs) 58 kB/s | 2.1 kB 00:00
Red Hat Enterprise Linux 8 for x86_64 - AppStream (RPMs) 77 kB/s | 2.8 kB 00:00
Red Hat Enterprise Linux 8 for x86_64 - BaseOS (RPMs) 57 kB/s | 2.4 kB 00:00
Package nrpe-4.0.3-6.el8.x86_64 is already installed.
Dependencies resolved.
Nothing to do.
Complete!

Still not getting any data collection.
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: Error getting NRPE to install on Redhat 8

Post by ssax »

Try doing this:

Code: Select all

yum reinstall nrpe
HIINNS
Posts: 172
Joined: Wed Mar 14, 2018 9:43 am

Re: Error getting NRPE to install on Redhat 8

Post by HIINNS »

Sorry, didn't work. -> sudo yum reinstall nrpe
Last login: Tue Jun 29 12:43:02 EDT 2021
Loaded plugins: langpacks, product-id, search-disabled-repos, subscription-manager
No Match for argument: nrpe
rhel-7-server-ansible-2.9-rpms | 2.3 kB 00:00:00
rhel-7-server-extras-rpms | 2.0 kB 00:00:00
rhel-7-server-optional-rpms | 1.8 kB 00:00:00
rhel-7-server-rpms | 2.0 kB 00:00:00
rhel-server-rhscl-7-rpms | 2.0 kB 00:00:00
Error: Nothing to do

Do i uninstall then reinstall?
User avatar
vtrac
Posts: 903
Joined: Tue Oct 27, 2020 1:35 pm

Re: Error getting NRPE to install on Redhat 8

Post by vtrac »

Hi,
How are you doing?
I think your "nrpe" is installed at a different location because it was built (packaged) for RHEL 8.

Please run the below command and post outputs:

Code: Select all

rpm -ql nrpe
Also, please run and post outputs of these commands:

Code: Select all

cat /etc/xinetd.d/nrpe

ss -na | grep 5666

ps -ef | grep nrpe
If you want to run "nrpe" with xinetd, then you must change the content of the "/etc/xinetd.d/nrpe" since the content location is different now. We will find out more when I get those outputs.


Best Regards,
Vinh
Locked