Page 1 of 1

Re-installing Nagios XI Issues

Posted: Tue Aug 03, 2021 8:10 pm
by scheung
I had to uninstall Nagios XI and try to reinstall again with fullinstall script using latest Nagios. But I encountered issues and installation failed. I attached the install.log in the post.

For re-installation, do I have to do clean up and uninstall packages before do fullinstall again?

I had used uninstall.sh to uninstall Nagios XI before reinstall with fullinstall.

Thanks!
Sam

Re: Re-installing Nagios XI Issues

Posted: Wed Aug 04, 2021 11:34 am
by pbroste
Hello @scheung

Thanks for reaching out. We see that the install is failing on repo:
"Error: Package: nagiosxi-deps-el7-5.8.2-1.noarch (/nagiosxi-deps-el7-5.8.2-1.noarch)"
Please walk through the offline install found here.
Thanks,
Perry

Re: Re-installing Nagios XI Issues

Posted: Wed Aug 04, 2021 2:18 pm
by scheung
Hi Perry,

I have downloaded the nagiosxi-5.8.5-1.el7.x86_64.tar.gz and followed the offline installation.

I am getting these error messages. Am I missing some packages? I have captured the errors in the attached file.

Thanks!
Sam

Re: Re-installing Nagios XI Issues

Posted: Thu Aug 05, 2021 9:25 am
by pbroste
Hello @scheung

Thanks for following up, found that others have been having similar issues and resolved by entering the command:

Code: Select all

subscription-manager repos --enable=rhel-7-server-extras-rpms --enable=rhel-7-server-optional-rpms
Thanks,
Perry

Re: Re-installing Nagios XI Issues

Posted: Thu Aug 05, 2021 10:44 am
by scheung
Hi Perry,

Actually, those repos have been enabled already.

[root@eew-monitor2 ~]# subscription-manager repos --list-enabled
+----------------------------------------------------------+
Available Repositories in /etc/yum.repos.d/redhat.repo
+----------------------------------------------------------+
Repo ID: rhel-7-server-extras-rpms
Repo Name: Red Hat Enterprise Linux 7 Server - Extras (RPMs)
Repo URL: https://cdn.redhat.com/content/dist/rhe ... /extras/os
Enabled: 1

Repo ID: rhel-7-server-optional-rpms
Repo Name: Red Hat Enterprise Linux 7 Server - Optional (RPMs)
Repo URL: https://cdn.redhat.com/content/dist/rhe ... ptional/os
Enabled: 1

Repo ID: rhel-7-server-rpms
Repo Name: Red Hat Enterprise Linux 7 Server (RPMs)
Repo URL: https://cdn.redhat.com/content/dist/rhe ... asearch/os
Enabled: 1

And these are in the repo list.

[root@eew-monitor2 ~]# yum repolist
Loaded plugins: product-id, search-disabled-repos, subscription-manager
repo id repo name status
epel/x86_64 Extra Packages for Enterprise Linux 7 - x86_64 13,625
nagios-base Nagios 100
nagiosxi-deps Nagios XI Dependencies 31
remi-php72 Remi's PHP 7.2 RPM repository for Enterprise Linux 7 - x86_64 448
remi-safe Safe Remi's RPM repository for Enterprise Linux 7 - x86_64 4,469
rhel-7-server-extras-rpms/x86_64 Red Hat Enterprise Linux 7 Server - Extras (RPMs) 1,404
rhel-7-server-optional-rpms/7Server/x86_64 Red Hat Enterprise Linux 7 Server - Optional (RPMs) 23,015
rhel-7-server-rpms/7Server/x86_64 Red Hat Enterprise Linux 7 Server (RPMs) 32,035
repolist: 75,127

Sam

Re: Re-installing Nagios XI Issues

Posted: Thu Aug 05, 2021 4:02 pm
by pbroste
Hello @scheung

Thanks for following up with the details, and I see that you are correct that the repos are enabled.

I totally forgot to inquire earlier in the thread if you have any security application(s) like Selinux, AppArmor, or etc enabled?

Code: Select all

sestatus
Here is a link to a uninstall that will clean up MySQL and Postgresql.

https://support.nagios.com/forum/download/file.php?id=2240

If you want to see if what the fullinstall script is failing on you can use 'bash -x fullinstall' to get verbose results as it installs.

Thanks,
Perry

Re: Re-installing Nagios XI Issues

Posted: Thu Aug 05, 2021 5:43 pm
by ssax
Those RPM errors are because it has PHP 7 already installed on it.

Trying removing php 7 first:

Code: Select all

yum remove php-*