Re-installing Nagios xi Issues

This support forum board is for support questions relating to Nagios xi, our flagship commercial network monitoring solution.
scheung
Posts: 7
Joined: Mon Oct 05, 2020 6:40 pm

Re-installing Nagios xi Issues

Post 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
You do not have the required permissions to view the files attached to this post.
User avatar
pbroste
Posts: 1288
Joined: Tue Jun 01, 2021 1:27 pm

Re: Re-installing Nagios xi Issues

Post 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
scheung
Posts: 7
Joined: Mon Oct 05, 2020 6:40 pm

Re: Re-installing Nagios xi Issues

Post 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
You do not have the required permissions to view the files attached to this post.
User avatar
pbroste
Posts: 1288
Joined: Tue Jun 01, 2021 1:27 pm

Re: Re-installing Nagios xi Issues

Post 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
scheung
Posts: 7
Joined: Mon Oct 05, 2020 6:40 pm

Re: Re-installing Nagios xi Issues

Post 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
User avatar
pbroste
Posts: 1288
Joined: Tue Jun 01, 2021 1:27 pm

Re: Re-installing Nagios xi Issues

Post 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
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: Re-installing Nagios xi Issues

Post 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-*