Page 2 of 3
Re: Error getting NRPE to install on Redhat 8
Posted: Thu Jun 24, 2021 4:55 am
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??
Re: Error getting NRPE to install on Redhat 8
Posted: Thu Jun 24, 2021 4:57 am
by HIINNS
I looked further and the /usr/local/nagios/bin/nrpe file does not exist. Any recommendations?
Re: Error getting NRPE to install on Redhat 8
Posted: Thu Jun 24, 2021 6:37 am
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!
Re: Error getting NRPE to install on Redhat 8
Posted: Thu Jun 24, 2021 9:09 am
by gsmith
Hi
What is the result of:
Code: Select all
sudo systemctl status fapolicyd.service
Thanks
Re: Error getting NRPE to install on Redhat 8
Posted: Fri Jun 25, 2021 4:20 am
by HIINNS
fapolicyd.service - File Access Policy Daemon
Loaded: loaded (/usr/lib/systemd/system/fapolicyd.service; disabled; vendor preset: disabled)
Active: inactive (dead)
Re: Error getting NRPE to install on Redhat 8
Posted: Fri Jun 25, 2021 10:50 am
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:
Let me know what happens.
Thanks
Re: Error getting NRPE to install on Redhat 8
Posted: Mon Jun 28, 2021 5:44 am
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.
Re: Error getting NRPE to install on Redhat 8
Posted: Mon Jun 28, 2021 2:31 pm
by ssax
Re: Error getting NRPE to install on Redhat 8
Posted: Tue Jun 29, 2021 11:45 am
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?
Re: Error getting NRPE to install on Redhat 8
Posted: Tue Jun 29, 2021 4:59 pm
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:
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