Page 1 of 2

Nagios installation is failed

Posted: Fri Jan 17, 2020 11:58 am
by pavan27
Hello Support team,

I am working on Nagios XI installation , installation is failed with below error.

Code: Select all

package centos-release is not installed
./0-repos: line 89: rhn-channel: command not found
ERROR: Please add the 'Optional' rpms channel to your Red Hat systems subscriptions.
       You can do so in the Redhat Network web interface or using the rhn-channel command.
       or, install the yum-utils package and use the following command:
       yum-config-manager --enable rhel-7-server-optional-rpms

it appears Nigios installation process is trying to configure Nagios repository and my machine don't have public access to connect nagios repo server.
is there any way to install nagios with out configuring nagios repository ?

here is my configuration

Code: Select all

DATE: Tue Jan  7 23:15:40 GMT 2020

DISTRO INFO:
RedHatEnterpriseServer
7.7
x86_64

THIS IS A NEW INSTALL!

INSTALLING:
full=5.6.9
major=5
minor=6.9
releasedate=2019-12-10
release=5609

Please help us.

Thank you
Pavan sunkara

Re: Nagios installation is failed

Posted: Fri Jan 17, 2020 1:55 pm
by scottwilkerson
We have a specific document outlining what is required for an offline install
https://assets.nagios.com/downloads/nag ... onment.pdf

Re: Nagios installation is failed

Posted: Wed Jan 22, 2020 12:12 pm
by pavan27
Hello Scott,

thank you so much for sending document. I have install required rpm provided on pdf file. downloaded offline tarbar and ran full install command. again Installation got failed with below error
--> Finished Dependency Resolution
Error: Package: rpm-libs-4.11.3-35.el7.i686 (rhel-7-server-rpms)
Requires: rpm = 4.11.3-35.el7
Installed: rpm-4.11.3-40.el7.x86_64 (@anaconda/7.7)
rpm = 4.11.3-40.el7
Available: rpm-4.11.1-16.el7.x86_64 (rhel-7-server-rpms)
rpm = 4.11.1-16.el7
Available: rpm-4.11.1-18.el7_0.x86_64 (rhel-7-server-rpms)
rpm = 4.11.1-18.el7_0
Available: rpm-4.11.1-25.el7.x86_64 (rhel-7-server-rpms)
rpm = 4.11.1-25.el7
Available: rpm-4.11.3-17.el7.x86_64 (rhel-7-server-rpms)
rpm = 4.11.3-17.el7
Available: rpm-4.11.3-21.el7.x86_64 (rhel-7-server-rpms)
rpm = 4.11.3-21.el7
Available: rpm-4.11.3-35.el7.x86_64 (rhel-7-server-rpms)
rpm = 4.11.3-35.el7
Error: Package: ncurses-libs-5.9-13.20130511.el7.i686 (rhel-7-server-rpms)
Requires: ncurses-base = 5.9-13.20130511.el7
Installed: ncurses-base-5.9-14.20130511.el7_4.noarch (@anaconda/7.7)
ncurses-base = 5.9-14.20130511.el7_4
Available: ncurses-base-5.9-13.20130511.el7.noarch (rhel-7-server-rpms)
ncurses-base = 5.9-13.20130511.el7
You could try using --skip-broken to work around the problem
** Found 6 pre-existing rpmdb problem(s), 'yum check' output follows:
4:perl-5.16.3-294.el7_6.x86_64 has missing requires of perl(Filter::Util::Call)
4:perl-5.16.3-294.el7_6.x86_64 has missing requires of perl(Socket)
4:perl-5.16.3-294.el7_6.x86_64 has missing requires of perl(Socket) >= ('0', '1.3', None)
4:perl-5.16.3-294.el7_6.x86_64 has missing requires of perl(Time::HiRes)
4:perl-5.16.3-294.el7_6.x86_64 has missing requires of perl(threads)
4:perl-5.16.3-294.el7_6.x86_64 has missing requires of perl(threads::shared)
Uploading Enabled Repositories Report
Loaded plugins: product-id, subscription-manager
looks like i Have higher version of rpm. Not sure how to address this.
kindly advise with next steps.

Thank you,

Pavan Sunkara

Re: Nagios installation is failed

Posted: Wed Jan 22, 2020 1:11 pm
by scottwilkerson
Which file did you download from?
https://repo.nagios.com/?repo=offline

Also, you need to start from a minimal install system, it looks like you already have package installed from a anaconda/7.7 repository.... This should not be present

Re: Nagios installation is failed

Posted: Wed Jan 22, 2020 1:13 pm
by scottwilkerson
Additionally it looks like your rhel-7-server-rpms repo is trying to install i686 packages on your x86_64 machine....
Error: Package: rpm-libs-4.11.3-35.el7.i686 (rhel-7-server-rpms)

Re: Nagios installation is failed

Posted: Wed Jan 22, 2020 1:33 pm
by pavan27
Hello Scott,

Thank you so much for quick reply .

i have download offline tarball from below link

https://repo.nagios.com/?repo=offline#download

problem is my server already have 64 bit version of rpm. when it is trying to install i686 version install script is failing.
$ rpm -qa|grep rpm
rpm-build-libs-4.11.3-40.el7.x86_64
rpm-python-4.11.3-40.el7.x86_64
rpm-libs-4.11.3-40.el7.x86_64
rpm-4.11.3-40.el7.x86_64

tried to install i686 version
$ yum install rpm-libs.i686
Loaded plugins: enabled_repos_upload, package_upload, product-id, subscription-manager
Default_Organization_rpms7_rpms7 | 2.1 kB 00:00:00
rhel-7-server-optional-rpms | 2.0 kB 00:00:00
rhel-7-server-rpms | 2.0 kB 00:00:00
Resolving Dependencies
--> Running transaction check

failed with below error

---> Package sqlite.i686 0:3.7.17-8.el7 will be installed
--> Finished Dependency Resolution
Error: Package: rpm-libs-4.11.3-35.el7.i686 (rhel-7-server-rpms)
Requires: rpm = 4.11.3-35.el7
Installed: rpm-4.11.3-40.el7.x86_64 (@anaconda/7.7)
rpm = 4.11.3-40.el7
Available: rpm-4.11.1-16.el7.x86_64 (rhel-7-server-rpms)
rpm = 4.11.1-16.el7
Available: rpm-4.11.1-18.el7_0.x86_64 (rhel-7-server-rpms)
rpm = 4.11.1-18.el7_0
Available: rpm-4.11.1-25.el7.x86_64 (rhel-7-server-rpms)
rpm = 4.11.1-25.el7
Available: rpm-4.11.3-17.el7.x86_64 (rhel-7-server-rpms)
rpm = 4.11.3-17.el7
Available: rpm-4.11.3-21.el7.x86_64 (rhel-7-server-rpms)
rpm = 4.11.3-21.el7
Available: rpm-4.11.3-35.el7.x86_64 (rhel-7-server-rpms)
rpm = 4.11.3-35.el7
You could try using --skip-broken to work around the problem
** Found 6 pre-existing rpmdb problem(s), 'yum check' output follows:
4:perl-5.16.3-294.el7_6.x86_64 has missing requires of perl(Filter::Util::Call)
4:perl-5.16.3-294.el7_6.x86_64 has missing requires of perl(Socket)
4:perl-5.16.3-294.el7_6.x86_64 has missing requires of perl(Socket) >= ('0', '1.3', None)
4:perl-5.16.3-294.el7_6.x86_64 has missing requires of perl(Time::HiRes)
4:perl-5.16.3-294.el7_6.x86_64 has missing requires of perl(threads)
4:perl-5.16.3-294.el7_6.x86_64 has missing requires of perl(threads::shared)


$
I am not sure how to address this. please Advise

Thank you
Pavan sunkara

Re: Nagios installation is failed

Posted: Wed Jan 22, 2020 1:46 pm
by scottwilkerson
pavan27 wrote:when it is trying to install i686 version install script is failing.
Why are you trying to install a i686 version?

Re: Nagios installation is failed

Posted: Wed Jan 22, 2020 1:56 pm
by pavan27
Hello Scott,

are you asking to install Naigos i686 Version ? if yes, I did not tried.
if question is on rpm 32 bit version yes, i tried and it got failed

Code: Select all

[b]$ yum install rpm-libs.i686[/b]
Loaded plugins: enabled_repos_upload, package_upload, product-id, subscription-manager
Default_Organization_rpms7_rpms7 | 2.1 kB 00:00:00
rhel-7-server-optional-rpms | 2.0 kB 00:00:00
rhel-7-server-rpms | 2.0 kB 00:00:00
Resolving Dependencies
--> Running transaction check

failed with below error

[b]---> Package sqlite.i686 0:3.7.17-8.el7 will be installed
--> Finished Dependency Resolution
Error: Package: rpm-libs-4.11.3-35.el7.i686 (rhel-7-server-rpms)
Requires: rpm = 4.11.3-35.el7[/b]
Installed: rpm-4.11.3-40.el7.x86_64 (@anaconda/7.7)
rpm = 4.11.3-40.el7
Available: rpm-4.11.1-16.el7.x86_64 (rhel-7-server-rpms)
rpm = 4.11.1-16.el7
Available: rpm-4.11.1-18.el7_0.x86_64 (rhel-7-server-rpms)
rpm = 4.11.1-18.el7_0
Available: rpm-4.11.1-25.el7.x86_64 (rhel-7-server-rpms)
rpm = 4.11.1-25.el7
Available: rpm-4.11.3-17.el7.x86_64 (rhel-7-server-rpms)
rpm = 4.11.3-17.el7
Available: rpm-4.11.3-21.el7.x86_64 (rhel-7-server-rpms)
rpm = 4.11.3-21.el7
Available: rpm-4.11.3-35.el7.x86_64 (rhel-7-server-rpms)
rpm = 4.11.3-35.el7
You could try using --skip-broken to work around the problem
** Found 6 pre-existing rpmdb problem(s), 'yum check' output follows:
4:perl-5.16.3-294.el7_6.x86_64 has missing requires of perl(Filter::Util::Call)
4:perl-5.16.3-294.el7_6.x86_64 has missing requires of perl(Socket)
4:perl-5.16.3-294.el7_6.x86_64 has missing requires of perl(Socket) >= ('0', '1.3', None)
4:perl-5.16.3-294.el7_6.x86_64 has missing requires of perl(Time::HiRes)
4:perl-5.16.3-294.el7_6.x86_64 has missing requires of perl(threads)
4:perl-5.16.3-294.el7_6.x86_64 has missing requires of perl(threads::shared)

Re: Nagios installation is failed

Posted: Wed Jan 22, 2020 2:01 pm
by scottwilkerson
The question is why are you running this?

Code: Select all

yum install rpm-libs.i686
Can you attach the /tmp/xi-install.log

Re: Nagios installation is failed

Posted: Wed Jan 22, 2020 2:03 pm
by scottwilkerson
also, please provide the output of the following

Code: Select all

yum provides rpm-libs