Nagios 5.2 upgrade - Perl issue

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
rawwrr
Posts: 19
Joined: Mon Aug 22, 2011 12:23 pm

Nagios 5.2 upgrade - Perl issue

Post by rawwrr »

Hi,

I'm trying to upgrade Nagios from 2014R2.7 to 5.2 and I'm getting the following errors;


Transaction Check Error:
file /usr/share/man/man3/Test::Builder.3pm.gz from install of perl-Test-Simple-0.98-1.el5.rf.noarch conflicts with file from package perl-5.8.8-43.el5_11.x86_64
file /usr/share/man/man3/Test::Builder::Module.3pm.gz from install of perl-Test-Simple-0.98-1.el5.rf.noarch conflicts with file from package perl-5.8.8-43.el5_11.x86_64
file /usr/share/man/man3/Test::Builder::Tester.3pm.gz from install of perl-Test-Simple-0.98-1.el5.rf.noarch conflicts with file from package perl-5.8.8-43.el5_11.x86_64
file /usr/share/man/man3/Test::Builder::Tester::Color.3pm.gz from install of perl-Test-Simple-0.98-1.el5.rf.noarch conflicts with file from package perl-5.8.8-43.el5_11.x86_64
file /usr/share/man/man3/Test::More.3pm.gz from install of perl-Test-Simple-0.98-1.el5.rf.noarch conflicts with file from package perl-5.8.8-43.el5_11.x86_64
file /usr/share/man/man3/Test::Simple.3pm.gz from install of perl-Test-Simple-0.98-1.el5.rf.noarch conflicts with file from package perl-5.8.8-43.el5_11.x86_64
file /usr/share/man/man3/Test::Tutorial.3pm.gz from install of perl-Test-Simple-0.98-1.el5.rf.noarch conflicts with file from package perl-5.8.8-43.el5_11.x86_64


I tried removing the Perl 5.8.8 package before the upgrade but it "Fubared" my install so I had to rollback to my checkpoint.

Could someone please advise if removing the perl package is the correct solution?


Thanks!
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: Nagios 5.2 upgrade - Perl issue

Post by ssax »

Try uninstalling perl-Test-Simple:

Code: Select all

yum remove perl-Test-Simple
Then try the upgrade again.

Thank you
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Nagios 5.2 upgrade - Perl issue

Post by scottwilkerson »

Or you can perform the following

Code: Select all

yum install --disablerepo=rpmforge -y 'perl(Test::Simple)' 'perl(Class::Accessor)' perl-Params-Validate perl-Config-Tiny perl-Math-Calc-Units
then proceed with the upgrade
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
rawwrr
Posts: 19
Joined: Mon Aug 22, 2011 12:23 pm

Re: Nagios 5.2 upgrade - Perl issue

Post by rawwrr »

Hi,

So I ran both command;

yum remove perl-Test-Simple --> Package(s) perl-Test-Simple available, but not installed.

yum install --disablerepo=rpmforge -y 'perl(Test::Simple)' 'perl(Class::Accessor)' perl-Params-Validate perl-Config-Tiny perl-Math-Calc-Units

I'm having some trouble finding what the -y switches does but my guess is it only exclude some packages from the repo?

Anyway, after both commands ran, I still have the exact same output.
rawwrr
Posts: 19
Joined: Mon Aug 22, 2011 12:23 pm

Re: Nagios 5.2 upgrade - Perl issue

Post by rawwrr »

Here's a bit more of the log;

Code: Select all

Appending installation info to /usr/lib64/perl5/5.8.8/x86_64-linux-thread-multi/perllocal.pod
Extra Plugins upgraded OK
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base: centos.mirror.iweb.ca
 * epel: mirror.symnds.com
 * extras: centos.mirror.iweb.ca
 * rpmforge: mirror.team-cymru.org
 * updates: centos.mirror.iweb.ca
Excluding Packages in global exclude list
Finished
Setting up Install Process
Package perl-Number-Format-1.73-1.el5.noarch already installed and latest version
Package 2:nmap-6.47-1.x86_64 already installed and latest version
Package subversion-1.6.11-12.el5_10.x86_64 already installed and latest version
Nothing to do
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base: centos.mirror.iweb.ca
 * epel: mirror.symnds.com
 * extras: centos.mirror.iweb.ca
 * rpmforge: mirror.team-cymru.org
 * updates: centos.mirror.iweb.ca
Excluding Packages in global exclude list
Finished
Setting up Install Process
Package perl-Class-Accessor-0.34-1.el5.rf.noarch already installed and latest version
Package perl-Params-Validate-0.95-1.el5.rf.x86_64 already installed and latest version
Package perl-Config-Tiny-2.12-1.el5.rf.noarch already installed and latest version
Package perl-Math-Calc-Units-1.07-6.el5.noarch already installed and latest version
Resolving Dependencies
--> Running transaction check
---> Package perl-Test-Simple.noarch 0:0.98-1.el5.rf set to be updated
--> Finished Dependency Resolution

Dependencies Resolved

================================================================================
 Package                Arch         Version               Repository      Size
================================================================================
Installing:
 perl-Test-Simple       noarch       0.98-1.el5.rf         rpmforge       122 k

Transaction Summary
================================================================================
Install       1 Package(s)
Upgrade       0 Package(s)

Total size: 122 k
Downloading Packages:
Running rpm_check_debug
Running Transaction Test
Finished Transaction Test


Transaction Check Error:
  file /usr/share/man/man3/Test::Builder.3pm.gz from install of perl-Test-Simple-0.98-1.el5.rf.noarch conflicts with file from package perl-5.8.8-43.el5_11.x86_64
  file /usr/share/man/man3/Test::Builder::Module.3pm.gz from install of perl-Test-Simple-0.98-1.el5.rf.noarch conflicts with file from package perl-5.8.8-43.el5_11.x86_64
  file /usr/share/man/man3/Test::Builder::Tester.3pm.gz from install of perl-Test-Simple-0.98-1.el5.rf.noarch conflicts with file from package perl-5.8.8-43.el5_11.x86_64
  file /usr/share/man/man3/Test::Builder::Tester::Color.3pm.gz from install of perl-Test-Simple-0.98-1.el5.rf.noarch conflicts with file from package perl-5.8.8-43.el5_11.x86_64
  file /usr/share/man/man3/Test::More.3pm.gz from install of perl-Test-Simple-0.98-1.el5.rf.noarch conflicts with file from package perl-5.8.8-43.el5_11.x86_64
  file /usr/share/man/man3/Test::Simple.3pm.gz from install of perl-Test-Simple-0.98-1.el5.rf.noarch conflicts with file from package perl-5.8.8-43.el5_11.x86_64
  file /usr/share/man/man3/Test::Tutorial.3pm.gz from install of perl-Test-Simple-0.98-1.el5.rf.noarch conflicts with file from package perl-5.8.8-43.el5_11.x86_64

Error Summary
-------------
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Nagios 5.2 upgrade - Perl issue

Post by scottwilkerson »

Apparently the rpmforge version of perl-Test-Simple has conflicts with the perl man files you have.

Here is a work around
edit the Nagios XI upgrade script

/tmp/nagiosxi/upgrade

On line 716 change the yum install to start with

Code: Select all

yum install --disablerepo=rpmforge -y 
this should resolve the upgrade issue
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
rawwrr
Posts: 19
Joined: Mon Aug 22, 2011 12:23 pm

Re: Nagios 5.2 upgrade - Perl issue

Post by rawwrr »

Out of curiosity, that is from downloading the latest upgrade manually ?

If I go that route, the 716th line is "cd ./subcomponents/webinject"

Code: Select all


    # reinstall webinject to make sure we have proper permissions
    (
        cd ./subcomponents/webinject
        ./install
    )

Thanks for you help !
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: Nagios 5.2 upgrade - Perl issue

Post by rkennedy »

Did this solve your upgrade issue with the line yum install --disablerepo=rpmforge -y that @scottwilkerson posted?

For reference, the -y will eliminate any prompts that ask you yes/no.
Former Nagios Employee
rawwrr
Posts: 19
Joined: Mon Aug 22, 2011 12:23 pm

Re: Nagios 5.2 upgrade - Perl issue

Post by rawwrr »

rkennedy wrote:Did this solve your upgrade issue with the line yum install --disablerepo=rpmforge -y that @scottwilkerson posted?

For reference, the -y will eliminate any prompts that ask you yes/no.
Thanks for the information regarding the -y

It did not solve the issue when I did run the disablerepo=rpmforce command and then ran the nagios upgrade again.

I'm still looking where to put the line in the upgrade file since the 716th line doesn't appears to be where it should go in my upgrage file

thanks!
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: Nagios 5.2 upgrade - Perl issue

Post by rkennedy »

In previous versions it was 716, I believe the line that needs to be changed is 705 in 5.2.1 -

Code: Select all

		yum install -y 'perl(Test::Simple)' 'perl(Class::Accessor)' perl-Params-Validate perl-Config-Tiny perl-Math-Calc-Units
Change it to -

Code: Select all

		yum install --disablerepo=rpmforge -y 'perl(Test::Simple)' 'perl(Class::Accessor)' perl-Params-Validate perl-Config-Tiny perl-Math-Calc-Units
Former Nagios Employee
Locked