LINUX NRPE agent install fails on Centos 7.7

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
pkarr
Posts: 58
Joined: Fri Oct 05, 2012 1:01 pm

LINUX NRPE agent install fails on Centos 7.7

Post by pkarr »

Our UNIX Admins tried to install the most recent LINUX NRPE agent on a Centos 7.7 server and it failed. I’ve attached the install log.
It looks like some prereqs need to be updated.

p.s. yeah I know I would have tried what the error message suggests but they are not ‘think out of the box’ kind of guys.
Guess they don’t make UNIX admins like they used to.

Hope you all are staying well out there.

Thanks,
Penny Karr | IT Infrastructure Monitoring
Atrius Health Inc. http://www.atriushealth.org
Email: [email protected]

currently running Nagios XI 5.4.12
You do not have the required permissions to view the files attached to this post.
User avatar
lmiltchev
Former Nagios Staff
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: LINUX NRPE agent install fails on Centos 7.7

Post by lmiltchev »

Have you followed our official documentation for installing the NRPE agent?

https://assets.nagios.com/downloads/nag ... _Agent.pdf

Are you using a proxy or local repos? Can you run the following commands, and show the output?

Code: Select all

cat /etc/*release
uname -a
yum repolist -v
Can you update the system successfully by running the commands below?

Code: Select all

yum clean all
yum update
Be sure to check out our Knowledgebase for helpful articles and solutions!
pkarr
Posts: 58
Joined: Fri Oct 05, 2012 1:01 pm

Re: LINUX NRPE agent install fails on Centos 7.7

Post by pkarr »

Hi,
Yes, they did. Removed it and tried again and got the same error. Here is their reply.
Note that I don't think we've reached the webex/conference call stage yet.

thank you,
Penny

====================================================================================

Penny,

I removed the version of the Nagios software on lvodcimp01. I did
what you suggested using wget to obtain this version to install.

wget https://assets.nagios.com/downloads/nag ... ent.tar.gz

I followed the instructions to the T and I am still getting the same error.
Our instructions are essentially the same as we installed Nagios on numerous
servers without any issues. Perhaps we can join in on a conference call and a webex
with Nagios support, just an idea. Also below is the error output of the most recent
install from a couple minutes ago.

Thanks,

Ed

--------------------------------------------------------------------------------

These are the repositories shown by yum repolist –v and I also did the yum clean all:

[root@lvodcimp01 linux-nrpe-agent]# cat /etc/redhat-release
CentOS Linux release 7.7.1908 (Core)

[root@lvodcimp01 linux-nrpe-agent]# uname -a
Linux lvodcimp01.atriushealth.net 3.10.0-1062.4.1.el7.x86_64 #1 SMP Fri Oct 18 17:15:30 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux

[root@lvodcimp01 linux-nrpe-agent]# yum repolist -v
Loading "fastestmirror" plugin
Loading "langpacks" plugin
Adding en_US.UTF-8 to language list
Config time: 0.010
Yum version: 3.4.3
Loading mirror speeds from cached hostfile
* base: mirror.linux.duke.edu
Setting up Package Sacks
pkgsack time: 0.003
Repo-id : base/7/x86_64
Repo-name : CentOS-7 - Base
Repo-revision: 1568055520
Repo-updated : Mon Sep 9 14:59:14 2019
Repo-pkgs : 10,097
Repo-size : 9.7 G
Repo-mirrors : http://mirrorlist.centos.org/?release=7 ... nfra=stock
Repo-baseurl : http://mirror.linux.duke.edu/pub/centos ... os/x86_64/
: (9 more)
Repo-expire : 21,600 second(s) (last: Wed Mar 18 13:54:40 2020)
Filter : read-only:present
Repo-filename: /etc/yum.repos.d/CentOS-Base.repo

repolist: 10,097


--------------------------------------------------------------------------------------


[root@lvodcimp01 linux-nrpe-agent]# ./fullinstall
============================
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, Cloud Linux 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'...
Configuring Repos...
Enabling EPEL repo...
Loaded plugins: fastestmirror, langpacks
Loading mirror speeds from cached hostfile
* base: mirror.linux.duke.edu
Nothing to do
epel-release RPM installed OK
Repos configured OK
RESULT=0
Running './1-prereqs'...
Installing prerequisites...
Loaded plugins: fastestmirror, langpacks
Loading mirror speeds from cached hostfile
* base: mirror.linux.duke.edu
Package autoconf-2.69-11.el7.noarch already installed and latest version
Package gcc-4.8.5-39.el7.x86_64 already installed and latest version
Package glibc-2.17-292.el7.x86_64 already installed and latest version
No package libmcrypt-devel available.
Package 1:make-3.82-24.el7.x86_64 already installed and latest version
Package sudo-1.8.23-4.el7.x86_64 already installed and latest version
Package sysstat-10.1.5-18.el7.x86_64 already installed and latest version
Package bc-1.06.95-13.el7.x86_64 already installed and latest version
Resolving Dependencies
--> Running transaction check
---> Package openssl-devel.x86_64 1:1.0.2k-19.el7 will be installed
--> Processing Dependency: zlib-devel(x86-64) for package: 1:openssl-devel-1k-19.el7.x86_64
--> Processing Dependency: krb5-devel(x86-64) for package: 1:openssl-devel-1k-19.el7.x86_64
---> Package xinetd.x86_64 2:2.3.15-13.el7 will be installed
--> Running transaction check
---> Package krb5-devel.x86_64 0:1.15.1-37.el7_6 will be installed
--> Processing Dependency: libkadm5(x86-64) = 1.15.1-37.el7_6 for package: kdevel-1.15.1-37.el7_6.x86_64
--> Processing Dependency: krb5-libs(x86-64) = 1.15.1-37.el7_6 for package: -devel-1.15.1-37.el7_6.x86_64
--> Processing Dependency: libverto-devel for package: krb5-devel-1.15.1-37.6.x86_64
--> Processing Dependency: libselinux-devel for package: krb5-devel-1.15.1-37_6.x86_64
--> Processing Dependency: libcom_err-devel for package: krb5-devel-1.15.1-37_6.x86_64
--> Processing Dependency: keyutils-libs-devel for package: krb5-devel-1.15..el7_6.x86_64
---> Package zlib-devel.x86_64 0:1.2.7-18.el7 will be installed
--> Running transaction check
---> Package keyutils-libs-devel.x86_64 0:1.5.8-3.el7 will be installed
---> Package krb5-devel.x86_64 0:1.15.1-37.el7_6 will be installed
--> Processing Dependency: krb5-libs(x86-64) = 1.15.1-37.el7_6 for package: -devel-1.15.1-37.el7_6.x86_64
---> Package libcom_err-devel.x86_64 0:1.42.9-16.el7 will be installed
---> Package libkadm5.x86_64 0:1.15.1-37.el7_6 will be installed
--> Processing Dependency: krb5-libs(x86-64) = 1.15.1-37.el7_6 for package: adm5-1.15.1-37.el7_6.x86_64
---> Package libselinux-devel.x86_64 0:2.5-14.1.el7 will be installed
--> Processing Dependency: libsepol-devel(x86-64) >= 2.5-10 for package: libnux-devel-2.5-14.1.el7.x86_64
--> Processing Dependency: pkgconfig(libsepol) for package: libselinux-devel-14.1.el7.x86_64
--> Processing Dependency: pkgconfig(libpcre) for package: libselinux-devel-14.1.el7.x86_64
---> Package libverto-devel.x86_64 0:0.2.5-4.el7 will be installed
--> Running transaction check
---> Package krb5-devel.x86_64 0:1.15.1-37.el7_6 will be installed
--> Processing Dependency: krb5-libs(x86-64) = 1.15.1-37.el7_6 for package: -devel-1.15.1-37.el7_6.x86_64
---> Package libkadm5.x86_64 0:1.15.1-37.el7_6 will be installed
--> Processing Dependency: krb5-libs(x86-64) = 1.15.1-37.el7_6 for package: adm5-1.15.1-37.el7_6.x86_64
---> Package libsepol-devel.x86_64 0:2.5-10.el7 will be installed
---> Package pcre-devel.x86_64 0:8.32-17.el7 will be installed
--> Finished Dependency Resolution
Error: Package: libkadm5-1.15.1-37.el7_6.x86_64 (base)
Requires: krb5-libs(x86-64) = 1.15.1-37.el7_6
Installed: krb5-libs-1.15.1-37.el7_7.2.x86_64 (@updates)
krb5-libs(x86-64) = 1.15.1-37.el7_7.2
Available: krb5-libs-1.15.1-37.el7_6.x86_64 (base)
krb5-libs(x86-64) = 1.15.1-37.el7_6
Error: Package: krb5-devel-1.15.1-37.el7_6.x86_64 (base)
Requires: krb5-libs(x86-64) = 1.15.1-37.el7_6
Installed: krb5-libs-1.15.1-37.el7_7.2.x86_64 (@updates)
krb5-libs(x86-64) = 1.15.1-37.el7_7.2
Available: krb5-libs-1.15.1-37.el7_6.x86_64 (base)
krb5-libs(x86-64) = 1.15.1-37.el7_6
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest
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: './1-prereqs'

[root@lvodcimp01 linux-nrpe-agent]#
User avatar
lmiltchev
Former Nagios Staff
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: LINUX NRPE agent install fails on Centos 7.7

Post by lmiltchev »

These are the repositories shown by yum repolist –v and I also did the yum clean all
Were you also able to run "yum update" successfully after running "yum clean all"? Can you show us the output after a successful "yum update" command?

It seems like you have some duplicate packages. Some were provided by the "Updates" repo, which is currently missing on your system. All I see is the "Base" repo. You could try re-enabling the "Updates" repo if you disabled it to see if this is going to resolve the issue.

First, let's check what kind of duplicates will be shown in the output of the command below:

Code: Select all

package-cleanup --dupes
You could try removing the duplicates by running:

Code: Select all

package-cleanup --cleandupes
If this doesn't help, feel free to open a support ticket via our support center here:

https://support.nagios.com/tickets/

A remote session may be necessary to further troubleshoot the issue.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked