CentOS 6, unable to upgrade NagiosXI to 5.5.10

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
Mortus
Posts: 27
Joined: Tue Nov 15, 2016 10:34 am

CentOS 6, unable to upgrade NagiosXI to 5.5.10

Post by Mortus »

I attempted to upgrade to the latest version of NagiosXI via the Web UI, but it failed. I then attempted to do so manually, but received the below error. It appears to be trying to install a 7 version of the packages. Is there a way to bypass this?

Code: Select all

Nagios XI Upgrade Log
==========================
DATE: Tue Feb 19 13:33:45 EST 2019

DISTRO INFO:
CentOS
6.10
x86_64


Archive:  sourceguardian/ixed4.lin.x86-64.zip
  inflating: /usr/lib64/php/modules/ixed.5.3.lin
Sourceguardian extension found for PHP version 5.3
Sourceguardian extension already in php.ini
Stopping httpd:                                            [  OK  ]
Starting httpd:                                            [  OK  ]
Checking required prereqs...
Please wait...

OLD VERSION: 5509
Loaded plugins: fastestmirror
Setting up Update Process
Loading mirror speeds from cached hostfile
 * base: centos.mirror.lstn.net
 * epel: mirror.math.princeton.edu
 * extras: centos.mirror.lstn.net
 * updates: centos.mirror.lstn.net
No Packages marked for Update
Loaded plugins: fastestmirror
Setting up Install Process
Loading mirror speeds from cached hostfile
 * base: centos.mirror.lstn.net
 * epel: mirror.math.princeton.edu
 * extras: centos.mirror.lstn.net
 * updates: centos.mirror.lstn.net
Package perl-Test-Simple-0.92-144.el6.x86_64 already installed and latest version
Package perl-Params-Validate-0.92-3.el6.x86_64 already installed and latest version
Package perl-Config-Tiny-2.12-7.1.el6.noarch already installed and latest version
Resolving Dependencies
--> Running transaction check
---> Package perl-Class-Accessor.noarch 0:0.31-6.1.el6 will be updated
---> Package perl-Class-Accessor.noarch 0:0.34-12.el7 will be an update
--> Processing Dependency: perl(:MODULE_COMPAT_5.16.3) for package: perl-Class-Accessor-0.34-12.el7.noarch
---> Package perl-Math-Calc-Units.noarch 0:1.07-6.el6 will be updated
---> Package perl-Math-Calc-Units.noarch 0:1.07-9.el7 will be an update
--> Processing Dependency: perl(:MODULE_COMPAT_5.16.3) for package: perl-Math-Calc-Units-1.07-9.el7.noarch
---> Package perl-Number-Format.noarch 0:1.73-3.el6 will be updated
---> Package perl-Number-Format.noarch 0:1.73-14.el7 will be an update
--> Processing Dependency: perl(:MODULE_COMPAT_5.16.3) for package: perl-Number-Format-1.73-14.el7.noarch
--> Finished Dependency Resolution
Error: Package: perl-Class-Accessor-0.34-12.el7.noarch (epel)
           Requires: perl(:MODULE_COMPAT_5.16.3)
Error: Package: perl-Math-Calc-Units-1.07-9.el7.noarch (epel)
           Requires: perl(:MODULE_COMPAT_5.16.3)
Error: Package: perl-Number-Format-1.73-14.el7.noarch (epel)
           Requires: perl(:MODULE_COMPAT_5.16.3)
 You could try using --skip-broken to work around the problem
 You could try running: rpm -Va --nofiles --nodigest
benjaminsmith
Posts: 5324
Joined: Wed Aug 22, 2018 4:39 pm
Location: saint paul

Re: CentOS 6, unable to upgrade NagiosXI to 5.5.10

Post by benjaminsmith »

Hi @Mortus,

We've tested the upgrade to 5.5.10 and it's working correctly. The server is trying to fetch el7 packages, so there maybe an issue with the repo settings.

1. What version are you upgrading from?

2. Run the following and post the output for us to review.

Code: Select all

yum repolist -v
Thank you.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.

Be sure to check out our Knowledgebase for helpful articles and solutions!
Mortus
Posts: 27
Joined: Tue Nov 15, 2016 10:34 am

Re: CentOS 6, unable to upgrade NagiosXI to 5.5.10

Post by Mortus »

1. I am upgrading from 5.5.9

2.

Code: Select all

[root@NagiosXI ~]# yum repolist -v
Loading "fastestmirror" plugin
Config time: 0.007
Yum Version: 3.2.29
Loading mirror speeds from cached hostfile
epel/metalink                                                                                                                                                                           |  18 kB     00:00
 * base: centos.mirror.lstn.net
 * epel: mirror.math.princeton.edu
 * extras: mirror.umd.edu
 * updates: centos.mirror.lstn.net
base                                                                                                                                                                                    | 3.7 kB     00:00
centos-sclo-rh                                                                                                                                                                          | 2.9 kB     00:00
cr                                                                                                                                                                                      | 3.3 kB     00:00
epel                                                                                                                                                                                    | 4.7 kB     00:00
epel/primary_db                                                                                                                                                                         | 6.6 MB     00:01
extras                                                                                                                                                                                  | 3.4 kB     00:00
extras/primary_db                                                                                                                                                                       |  28 kB     00:00
nagios-base                                                                                                                                                                             | 1.5 kB     00:00
nagios-base/primary                                                                                                                                                                     |  21 kB     00:00
nagios-base                                                                                                                                                                                            193/193
nagiosxi-deps                                                                                                                                                                           | 1.5 kB     00:00
spacewalk-client                                                                                                                                                                        | 3.0 kB     00:00
updates                                                                                                                                                                                 | 3.4 kB     00:00
updates/primary_db                                                                                                                                                                      | 2.7 MB     00:00
Setting up Package Sacks
pkgsack time: 0.022
Repo-id      : base
Repo-name    : CentOS-6 - Base
Repo-revision: 1530286202
Repo-updated : Fri Jun 29 11:37:23 2018
Repo-pkgs    : 6,713
Repo-size    : 5.5 G
Repo-mirrors : http://mirrorlist.centos.org/?release=6&arch=x86_64&repo=os&infra=stock
Repo-baseurl : http://centos.mirror.lstn.net/6.10/os/x86_64/ (9 more)
Repo-expire  : 21,600 second(s) (last: Fri Feb 22 07:59:30 2019)

Repo-id      : centos-sclo-rh
Repo-name    : CentOS-6 - SCLo rh
Repo-revision: 1549444621
Repo-updated : Wed Feb  6 04:18:11 2019
Repo-pkgs    : 2,986
Repo-size    : 2.8 G
Repo-baseurl : http://mirror.centos.org/centos/6/sclo/x86_64/rh/
Repo-expire  : 21,600 second(s) (last: Fri Feb 22 07:59:31 2019)

Repo-id      : cr
Repo-name    : CentOS-6 - CR
Repo-revision: 1530568218
Repo-updated : Mon Jul  2 17:50:19 2018
Repo-pkgs    : 0
Repo-size    : 0
Repo-baseurl : http://mirror.centos.org/centos/6/cr/x86_64/
Repo-expire  : 21,600 second(s) (last: Fri Feb 22 07:59:31 2019)

Repo-id      : epel
Repo-name    : Extra Packages for Enterprise Linux 7 - x86_64
Repo-revision: 1550715372
Repo-updated : Wed Feb 20 21:34:11 2019
Repo-pkgs    : 12,911
Repo-size    : 14 G
Repo-metalink: https://mirrors.fedoraproject.org/metalink?repo=epel-7&arch=x86_64
  Updated    : Wed Feb 20 21:34:11 2019
Repo-baseurl : http://mirror.math.princeton.edu/pub/epel/7/x86_64/ (58 more)
Repo-expire  : 21,600 second(s) (last: Fri Feb 22 07:59:31 2019)

Repo-id      : extras
Repo-name    : CentOS-6 - Extras
Repo-revision: 1550837493
Repo-updated : Fri Feb 22 07:11:34 2019
Repo-pkgs    : 43
Repo-size    : 12 M
Repo-mirrors : http://mirrorlist.centos.org/?release=6&arch=x86_64&repo=extras&infra=stock
Repo-baseurl : http://mirror.umd.edu/centos/6.10/extras/x86_64/ (9 more)
Repo-expire  : 21,600 second(s) (last: Fri Feb 22 07:59:33 2019)

Repo-id      : nagios-base
Repo-name    : Nagios
Repo-revision: 1550599898
Repo-updated : Tue Feb 19 13:11:52 2019
Repo-pkgs    : 193
Repo-size    : 1.3 G
Repo-baseurl : http://repo.nagios.com/nagios/6/
Repo-expire  : 21,600 second(s) (last: Fri Feb 22 07:59:34 2019)

Repo-id      : nagiosxi-deps
Repo-name    : Nagios XI Dependencies
Repo-revision: 1550590512
Repo-updated : Tue Feb 19 10:35:13 2019
Repo-pkgs    : 33
Repo-size    : 13 M
Repo-baseurl : http://repo.nagios.com/nagiosxi-deps/6/
Repo-expire  : 21,600 second(s) (last: Fri Feb 22 07:59:35 2019)

Repo-id      : spacewalk-client
Repo-name    : Spacewalk Client Tools
Repo-revision: 1548397712
Repo-updated : Fri Jan 25 01:28:32 2019
Repo-pkgs    : 73
Repo-size    : 5.2 M
Repo-baseurl : https://copr-be.cloud.fedoraproject.org/results/@spacewalkproject/spacewalk-2.9-client/epel-7-x86_64/
Repo-expire  : 21,600 second(s) (last: Fri Feb 22 07:59:35 2019)
Repo-excluded: 23

Repo-id      : updates
Repo-name    : CentOS-6 - Updates
Repo-revision: 1550679240
Repo-updated : Wed Feb 20 11:15:34 2019
Repo-pkgs    : 319
Repo-size    : 4.0 G
Repo-mirrors : http://mirrorlist.centos.org/?release=6&arch=x86_64&repo=updates&infra=stock
Repo-baseurl : http://centos.mirror.lstn.net/6.10/updates/x86_64/ (9 more)
Repo-expire  : 21,600 second(s) (last: Fri Feb 22 07:59:35 2019)

repolist: 23,271
[root@NagiosXI ~]#
benjaminsmith
Posts: 5324
Joined: Wed Aug 22, 2018 4:39 pm
Location: saint paul

Re: CentOS 6, unable to upgrade NagiosXI to 5.5.10

Post by benjaminsmith »

Hi @Mortus,

The installed Epel Repository is for Cent7 and not Cent6, so that looks like the cause of the issue.

Code: Select all

Repo-id      : epel
Repo-name    : Extra Packages for Enterprise Linux 7 - x86_64
Repo-revision: 1550715372
Repo-updated : Wed Feb 20 21:34:11 2019
Repo-pkgs    : 12,911
Repo-size    : 14 G
Repo-metalink: https://mirrors.fedoraproject.org/metalink?repo=epel-7&arch=x86_64
  Updated    : Wed Feb 20 21:34:11 2019
Repo-baseurl : http://mirror.math.princeton.edu/pub/epel/7/x86_64/ (58 more)
Repo-expire  : 21,600 second(s) (last: Fri Feb 22 07:59:31 2019)
First you'll want to remove any cached data, then remove and re-install the Epel repository. Run the following commands:

Code: Select all

yum clean all
yum remove epel-release
yum install epel-release
Then run the yum repolist -v to verify the Epel repository for CentOS 6 is installed and then try running the upgrade again.

Let me know if you're able to get it working.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.

Be sure to check out our Knowledgebase for helpful articles and solutions!
Mortus
Posts: 27
Joined: Tue Nov 15, 2016 10:34 am

Re: CentOS 6, unable to upgrade NagiosXI to 5.5.10

Post by Mortus »

That did it, thank you.
benjaminsmith
Posts: 5324
Joined: Wed Aug 22, 2018 4:39 pm
Location: saint paul

Re: CentOS 6, unable to upgrade NagiosXI to 5.5.10

Post by benjaminsmith »

Hi @Mortus,

Your welcome. Did you have any other questions or may I close this thread?
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.

Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked