Page 1 of 2

Update Fail - 5.6.10 to 5.6.12

Posted: Wed Mar 11, 2020 2:18 pm
by jenglish
Hello,

We are trying to update 5.6.10 to 5.6.12 using the offline instructions and it appears we're having some dependency issues.

File used for upgrade: https://repo.nagios.com/nagiosxi-offlin ... _64.tar.gz

Current Nagios version, OS info:

Code: Select all

[jenglish@boy-adams nagiosxi]$ date ; grep full /usr/local/nagiosxi/var/xiversion ; cat /etc/redhat-release ; uname -r
Wed Mar 11 15:15:19 EDT 2020
full=5.6.10
Red Hat Enterprise Linux Server release 6.10 (Santiago)
2.6.32-754.23.1.el6.x86_64
Error:

Code: Select all

[root@boy-adams nagiosxi]# pwd
/tmp/rpms/nagiosxi
[root@boy-adams nagiosxi]# ls -l upgrade
-rwxr-xr-x 1 root root 255 Feb 27 14:39 upgrade
[root@boy-adams nagiosxi]# ./upgrade
Loaded plugins: enabled_repos_upload, package_upload, product-id, rhnplugin, search-disabled-repos,
              : security, subscription-manager
This system is not registered with RHN Classic or RHN Satellite.
You can use rhn_register to register.
RHN Satellite or RHN Classic support will be disabled.
Setting up Local Package Process
Examining fping-3.10-1.el6.rf.x86_64.rpm: fping-3.10-1.el6.rf.x86_64
fping-3.10-1.el6.rf.x86_64.rpm: does not update installed package.
Examining freetds-0.91-2.el6.x86_64.rpm: freetds-0.91-2.el6.x86_64
freetds-0.91-2.el6.x86_64.rpm: does not update installed package.
Examining libmcrypt-2.5.8-9.el6.x86_64.rpm: libmcrypt-2.5.8-9.el6.x86_64
libmcrypt-2.5.8-9.el6.x86_64.rpm: does not update installed package.
Examining nagiosxi-5.6.12-1.el6.x86_64.rpm: nagiosxi-5.6.12-1.el6.x86_64
Marking nagiosxi-5.6.12-1.el6.x86_64.rpm to be installed
OPM-NM_nm-epel_nm_epel_Server6                                               | 2.4 kB     00:00
OPM-NM_rhel-custom_6-custom                                                  | 2.1 kB     00:00
OPM-NM_wazuh_wazuh                                                           | 2.1 kB     00:00
rhel-6-server-extras-rpms                                                    | 1.8 kB     00:00
rhel-6-server-optional-rpms                                                  | 2.0 kB     00:00
rhel-6-server-rpms                                                           | 2.0 kB     00:00
rhel-server-rhscl-6-rpms                                                     | 2.0 kB     00:00
Examining nagiosxi-mrtg-5.6.12-1.el6.x86_64.rpm: nagiosxi-mrtg-5.6.12-1.el6.x86_64
Marking nagiosxi-mrtg-5.6.12-1.el6.x86_64.rpm to be installed
Examining nagiosxi-nagioscore-5.6.12-1.el6.x86_64.rpm: nagiosxi-nagioscore-5.6.12-1.el6.x86_64
Marking nagiosxi-nagioscore-5.6.12-1.el6.x86_64.rpm to be installed
Examining nagiosxi-nagiosmobile-5.6.12-1.el6.x86_64.rpm: nagiosxi-nagiosmobile-5.6.12-1.el6.x86_64
Marking nagiosxi-nagiosmobile-5.6.12-1.el6.x86_64.rpm to be installed
Examining nagiosxi-nagiosplugins-5.6.12-1.el6.x86_64.rpm: nagiosxi-nagiosplugins-5.6.12-1.el6.x86_64
Marking nagiosxi-nagiosplugins-5.6.12-1.el6.x86_64.rpm to be installed
Examining nagiosxi-nagvis-5.6.12-1.el6.x86_64.rpm: nagiosxi-nagvis-5.6.12-1.el6.x86_64
Marking nagiosxi-nagvis-5.6.12-1.el6.x86_64.rpm to be installed
Examining nagiosxi-ndoutils-5.6.12-1.el6.x86_64.rpm: nagiosxi-ndoutils-5.6.12-1.el6.x86_64
Marking nagiosxi-ndoutils-5.6.12-1.el6.x86_64.rpm to be installed
Examining nagiosxi-nrds-5.6.12-1.el6.x86_64.rpm: nagiosxi-nrds-5.6.12-1.el6.x86_64
Marking nagiosxi-nrds-5.6.12-1.el6.x86_64.rpm to be installed
Examining nagiosxi-nrpe-5.6.12-1.el6.x86_64.rpm: nagiosxi-nrpe-5.6.12-1.el6.x86_64
Marking nagiosxi-nrpe-5.6.12-1.el6.x86_64.rpm to be installed
Examining nagiosxi-nsca-5.6.12-1.el6.x86_64.rpm: nagiosxi-nsca-5.6.12-1.el6.x86_64
Marking nagiosxi-nsca-5.6.12-1.el6.x86_64.rpm to be installed
Examining nagiosxi-nxti-5.6.12-1.el6.x86_64.rpm: nagiosxi-nxti-5.6.12-1.el6.x86_64
Marking nagiosxi-nxti-5.6.12-1.el6.x86_64.rpm to be installed
Examining nagiosxi-pnp-5.6.12-1.el6.x86_64.rpm: nagiosxi-pnp-5.6.12-1.el6.x86_64
Marking nagiosxi-pnp-5.6.12-1.el6.x86_64.rpm to be installed
Examining nagiosxi-shellinabox-5.6.12-1.el6.x86_64.rpm: nagiosxi-shellinabox-5.6.12-1.el6.x86_64
Marking nagiosxi-shellinabox-5.6.12-1.el6.x86_64.rpm to be installed
Examining nagiosxi-wkhtmltox-5.6.12-1.el6.x86_64.rpm: nagiosxi-wkhtmltox-5.6.12-1.el6.x86_64
Marking nagiosxi-wkhtmltox-5.6.12-1.el6.x86_64.rpm to be installed
Examining nagiosxi-wmic-5.6.12-1.el6.x86_64.rpm: nagiosxi-wmic-5.6.12-1.el6.x86_64
Marking nagiosxi-wmic-5.6.12-1.el6.x86_64.rpm to be installed
Examining nmap-6.47-1.x86_64.rpm: 2:nmap-6.47-1.x86_64
nmap-6.47-1.x86_64.rpm: does not update installed package.
Examining perl-Config-IniFiles-2.72-2.el6.noarch.rpm: perl-Config-IniFiles-2.72-2.el6.noarch
perl-Config-IniFiles-2.72-2.el6.noarch.rpm: does not update installed package.
Examining perl-Crypt-DES-2.05-9.el6.x86_64.rpm: perl-Crypt-DES-2.05-9.el6.x86_64
perl-Crypt-DES-2.05-9.el6.x86_64.rpm: does not update installed package.
Examining perl-Crypt-Rijndael-1.09-2.el6.x86_64.rpm: perl-Crypt-Rijndael-1.09-2.el6.x86_64
perl-Crypt-Rijndael-1.09-2.el6.x86_64.rpm: does not update installed package.
Examining perl-Mail-IMAPClient-3.37-1.el6.noarch.rpm: perl-Mail-IMAPClient-3.37-1.el6.noarch
perl-Mail-IMAPClient-3.37-1.el6.noarch.rpm: does not update installed package.
Examining perl-Mail-POP3Client-2.18-6.el6.noarch.rpm: perl-Mail-POP3Client-2.18-6.el6.noarch
perl-Mail-POP3Client-2.18-6.el6.noarch.rpm: does not update installed package.
Examining perl-Math-Calc-Units-1.07-6.el6.noarch.rpm: perl-Math-Calc-Units-1.07-6.el6.noarch
perl-Math-Calc-Units-1.07-6.el6.noarch.rpm: does not update installed package.
Examining perl-Nagios-Monitoring-Plugin-0.51-1.el6.noarch.rpm: perl-Nagios-Monitoring-Plugin-0.51-1.el6.noarch
Marking perl-Nagios-Monitoring-Plugin-0.51-1.el6.noarch.rpm to be installed
Examining perl-Net-SMTP-TLS-0.12-1.el6.rf.noarch.rpm: perl-Net-SMTP-TLS-0.12-1.el6.rf.noarch
perl-Net-SMTP-TLS-0.12-1.el6.rf.noarch.rpm: does not update installed package.
Examining perl-Net-SNMP-5.2.0-4.el6.noarch.rpm: perl-Net-SNMP-5.2.0-4.el6.noarch
perl-Net-SNMP-5.2.0-4.el6.noarch.rpm: does not update installed package.
Examining perl-Number-Format-1.73-3.el6.noarch.rpm: perl-Number-Format-1.73-3.el6.noarch
perl-Number-Format-1.73-3.el6.noarch.rpm: does not update installed package.
Examining php-mcrypt-5.3.3-5.el6.x86_64.rpm: php-mcrypt-5.3.3-5.el6.x86_64
php-mcrypt-5.3.3-5.el6.x86_64.rpm: does not update installed package.
Examining php-mssql-5.3.3-5.el6.x86_64.rpm: php-mssql-5.3.3-5.el6.x86_64
php-mssql-5.3.3-5.el6.x86_64.rpm: does not update installed package.
Examining php-pear-HTML-Template-IT-1.3.0-2.el5.noarch.rpm: php-pear-HTML-Template-IT-1.3.0-2.el5.noarch
php-pear-HTML-Template-IT-1.3.0-2.el5.noarch.rpm: does not update installed package.
Examining php-pecl-ssh2-0.11.0-7.el6.x86_64.rpm: php-pecl-ssh2-0.11.0-7.el6.x86_64
php-pecl-ssh2-0.11.0-7.el6.x86_64.rpm: does not update installed package.
Examining pymssql-1.0.2-4.el6.x86_64.rpm: pymssql-1.0.2-4.el6.x86_64
pymssql-1.0.2-4.el6.x86_64.rpm: does not update installed package.
Examining python-bson-2.5.2-3.el6.1.x86_64.rpm: python-bson-2.5.2-3.el6.1.x86_64
python-bson-2.5.2-3.el6.1.x86_64.rpm: does not update installed package.
Examining python-pymongo-2.5.2-3.el6.1.x86_64.rpm: python-pymongo-2.5.2-3.el6.1.x86_64
python-pymongo-2.5.2-3.el6.1.x86_64.rpm: does not update installed package.
Resolving Dependencies
--> Running transaction check
---> Package nagiosxi.x86_64 0:5.6.12-1.el6 will be installed
--> Processing Dependency: php-devel for package: nagiosxi-5.6.12-1.el6.x86_64
--> Processing Dependency: tftp for package: nagiosxi-5.6.12-1.el6.x86_64
---> Package nagiosxi-mrtg.x86_64 0:5.6.12-1.el6 will be installed
---> Package nagiosxi-nagioscore.x86_64 0:5.6.12-1.el6 will be installed
---> Package nagiosxi-nagiosmobile.x86_64 0:5.6.12-1.el6 will be installed
---> Package nagiosxi-nagiosplugins.x86_64 0:5.6.12-1.el6 will be installed
---> Package nagiosxi-nagvis.x86_64 0:5.6.12-1.el6 will be installed
---> Package nagiosxi-ndoutils.x86_64 0:5.6.12-1.el6 will be installed
---> Package nagiosxi-nrds.x86_64 0:5.6.12-1.el6 will be installed
---> Package nagiosxi-nrpe.x86_64 0:5.6.12-1.el6 will be installed
---> Package nagiosxi-nsca.x86_64 0:5.6.12-1.el6 will be installed
---> Package nagiosxi-nxti.x86_64 0:5.6.12-1.el6 will be installed
---> Package nagiosxi-pnp.x86_64 0:5.6.12-1.el6 will be installed
---> Package nagiosxi-shellinabox.x86_64 0:5.6.12-1.el6 will be installed
---> Package nagiosxi-wkhtmltox.x86_64 0:5.6.12-1.el6 will be installed
---> Package nagiosxi-wmic.x86_64 0:5.6.12-1.el6 will be installed
---> Package perl-Nagios-Monitoring-Plugin.noarch 0:0.51-1.el6 will be installed
--> Running transaction check
---> Package php-devel.x86_64 0:5.3.3-50.el6_10 will be installed
---> Package tftp.x86_64 0:0.49-8.el6 will be installed
--> Processing Conflict: nagiosxi-nxti-5.6.12-1.el6.x86_64 conflicts snmptt
No package matched to upgrade: nagiosxi-nxti
--> Processing Conflict: nagiosxi-nrpe-5.6.12-1.el6.x86_64 conflicts nrpe
No package matched to upgrade: nagiosxi-nrpe
--> Processing Conflict: nagiosxi-nrpe-5.6.12-1.el6.x86_64 conflicts nagios-nrpe
No package matched to upgrade: nagiosxi-nrpe
--> Processing Conflict: nagiosxi-5.6.12-1.el6.x86_64 conflicts nagios-nrpe
No package matched to upgrade: nagiosxi
--> Processing Conflict: nagiosxi-5.6.12-1.el6.x86_64 conflicts nrpe
No package matched to upgrade: nagiosxi
--> Processing Conflict: nagiosxi-nagiosplugins-5.6.12-1.el6.x86_64 conflicts nagios-plugins
No package matched to upgrade: nagiosxi-nagiosplugins
--> Finished Dependency Resolution
Error: nagiosxi conflicts with nagios-nrpe-2.14-1.el6.rf.x86_64
Error: nagiosxi-nrpe conflicts with nagios-nrpe-2.14-1.el6.rf.x86_64
Error: nagiosxi-nagiosplugins conflicts with nagios-plugins-2.2.2-2.20190926git1b8ad57.el6.x86_64
Error: nagiosxi-nxti conflicts with snmptt-1.4-0.9.beta2.el6.noarch
 You could try using --skip-broken to work around the problem
 You could try running: rpm -Va --nofiles --nodigest
Uploading Enabled Repositories Report
Loaded plugins: product-id, rhnplugin, subscription-manager
This system is not registered with RHN Classic or RHN Satellite.
You can use rhn_register to register.
RHN Satellite or RHN Classic support will be disabled.
[root@boy-adams nagiosxi]#
Thanks!

Re: Update Fail - 5.6.10 to 5.6.12

Posted: Wed Mar 11, 2020 2:23 pm
by scottwilkerson
It looks like someone installed 2 packages that conflict with our offline install packages nagios-nrpe and nagios-plugins need to be removed first

Code: Select all

yum remove nagios-plugins nagios-nrpe

Re: Update Fail - 5.6.10 to 5.6.12

Posted: Wed Mar 11, 2020 3:25 pm
by jenglish
Odd. This is the first occurrence of this happening (to my knowledge).

Code: Select all

Installed Packages
Name        : nagios-plugins
Arch        : x86_64
Version     : 2.2.2
Release     : 2.20190926git1b8ad57.el6
Size        : 289 k
Repo        : installed
From repo   : OPM-NM_nm-epel_nm_epel_Server6
Summary     : Host/service/network monitoring program plugins for Nagios
URL         : https://www.nagios-plugins.org/
License     : GPLv2+
Description : Nagios is a program that will monitor hosts and services on your
            : network, and to email or page you when a problem arises or is
            : resolved. Nagios runs on a Unix server as a background or daemon
            : process, intermittently running checks on various services that you
            : specify. The actual service checks are performed by separate "plugin"
            : programs which return the status of the checks to Nagios. This package
            : contains those plugins.

Code: Select all

Installed Packages
Name        : nagios-nrpe
Arch        : x86_64
Version     : 2.14
Release     : 1.el6.rf
Size        : 80 k
Repo        : installed
From repo   : OPM-NM_rhel-custom_6-custom
Summary     : Nagios Remote Plug-ins Execution daemon
URL         : http://www.nagios.org/
License     : GPL
Description : The nagios-nrpe packages contains the Nagios Remote Plug-ins Executor
            : -- daemon which can execute predefined commands on the remote host.
            : Execution request is send via check_nrpe Nagios plug-in. Allowed
            : monitoring commands are described in the daemon configuration file.
            :
            : Install the nagios-nrpe package if you want accept and process requests
            : from check_nrpe on this hosts.

Re: Update Fail - 5.6.10 to 5.6.12

Posted: Wed Mar 11, 2020 3:32 pm
by scottwilkerson
These are not the packages distributed with Nagios XI

Re: Update Fail - 5.6.10 to 5.6.12

Posted: Wed Mar 11, 2020 3:39 pm
by jenglish
I guess I'm just confused why it's doing it with .12. When we upgraded to .10 that wasn't an issue. I'll remove the problem packages, upgrade, and then reinstall them.

Re: Update Fail - 5.6.10 to 5.6.12

Posted: Wed Mar 11, 2020 3:51 pm
by scottwilkerson
jenglish wrote:I guess I'm just confused why it's doing it with .12. When we upgraded to .10 that wasn't an issue. I'll remove the problem packages, upgrade, and then reinstall them.
The same services in different packages come packaged with XI and always have, there should be no reason to re-install them.

Re: Update Fail - 5.6.10 to 5.6.12

Posted: Thu Mar 12, 2020 9:53 am
by jenglish
So we removed the packages as suggested and are still having a dependency issue.

Code: Select all

Resolving Dependencies
--> Running transaction check
---> Package nagiosxi.x86_64 0:5.6.12-1.el6 will be installed
--> Processing Dependency: php-devel for package: nagiosxi-5.6.12-1.el6.x86_64
--> Processing Dependency: tftp for package: nagiosxi-5.6.12-1.el6.x86_64
---> Package nagiosxi-mrtg.x86_64 0:5.6.12-1.el6 will be installed
---> Package nagiosxi-nagioscore.x86_64 0:5.6.12-1.el6 will be installed
---> Package nagiosxi-nagiosmobile.x86_64 0:5.6.12-1.el6 will be installed
---> Package nagiosxi-nagiosplugins.x86_64 0:5.6.12-1.el6 will be installed
---> Package nagiosxi-nagvis.x86_64 0:5.6.12-1.el6 will be installed
---> Package nagiosxi-ndoutils.x86_64 0:5.6.12-1.el6 will be installed
---> Package nagiosxi-nrds.x86_64 0:5.6.12-1.el6 will be installed
---> Package nagiosxi-nrpe.x86_64 0:5.6.12-1.el6 will be installed
---> Package nagiosxi-nsca.x86_64 0:5.6.12-1.el6 will be installed
---> Package nagiosxi-nxti.x86_64 0:5.6.12-1.el6 will be installed
---> Package nagiosxi-pnp.x86_64 0:5.6.12-1.el6 will be installed
---> Package nagiosxi-shellinabox.x86_64 0:5.6.12-1.el6 will be installed
---> Package nagiosxi-wkhtmltox.x86_64 0:5.6.12-1.el6 will be installed
---> Package nagiosxi-wmic.x86_64 0:5.6.12-1.el6 will be installed
---> Package perl-Nagios-Monitoring-Plugin.noarch 0:0.51-1.el6 will be installed
--> Running transaction check
---> Package php-devel.x86_64 0:5.3.3-50.el6_10 will be installed
---> Package tftp.x86_64 0:0.49-8.el6 will be installed
--> Processing Conflict: nagiosxi-nxti-5.6.12-1.el6.x86_64 conflicts snmptt
No package matched to upgrade: nagiosxi-nxti
--> Finished Dependency Resolution
Error: nagiosxi-nxti conflicts with snmptt-1.4-0.9.beta2.el6.noarch
 You could try using --skip-broken to work around the problem
 You could try running: rpm -Va --nofiles --nodigest
Uploading Enabled Repositories Report
Loaded plugins: product-id, rhnplugin, subscription-manager
This system is not registered with RHN Classic or RHN Satellite.
You can use rhn_register to register.
RHN Satellite or RHN Classic support will be disabled.

Re: Update Fail - 5.6.10 to 5.6.12

Posted: Thu Mar 12, 2020 9:54 am
by scottwilkerson
one more package that must have been forcefully install

Code: Select all

yum remove snmptt

Re: Update Fail - 5.6.10 to 5.6.12

Posted: Thu Mar 12, 2020 10:05 am
by jenglish
Done. And more ...

Code: Select all

Installing Nagios XI base files...
Creating product directory...
Adding password for user nagiosadmin
Stopping httpd: [  OK  ]
Starting httpd: [  OK  ]
Checking MySQL status...
MySQL running - continuing...
./init-xidb: line 33: [: -eq: unary operator expected
Setting up Nagios XI database...
ERROR 1007 (HY000) at line 4: Can't create database 'nagiosxi'; database exists
ERROR: Nagios XI database was not setup properly - exiting.
RESULT=1

 

===================
INSTALLATION ERROR!
===================
Installation step failed - exiting.
Check for error messages in the install log (install.log).

 

If you require assistance in resolving the issue, please include install.log
in your communications with Nagios XI technical support.

 

The script that failed was: './B-installxi'
Uploading Package Profile
  Verifying  : nagiosxi-nrds-5.6.12-1.el6.x86_64                           1/18
  Verifying  : nagiosxi-wmic-5.6.12-1.el6.x86_64                           2/18
  Verifying  : nagiosxi-nagioscore-5.6.12-1.el6.x86_64                     3/18
  Verifying  : nagiosxi-pnp-5.6.12-1.el6.x86_64                            4/18
  Verifying  : nagiosxi-nxti-5.6.12-1.el6.x86_64                           5/18
  Verifying  : nagiosxi-nagvis-5.6.12-1.el6.x86_64                         6/18
  Verifying  : nagiosxi-shellinabox-5.6.12-1.el6.x86_64                    7/18
  Verifying  : nagiosxi-nrpe-5.6.12-1.el6.x86_64                           8/18
  Verifying  : nagiosxi-mrtg-5.6.12-1.el6.x86_64                           9/18
  Verifying  : nagiosxi-nagiosmobile-5.6.12-1.el6.x86_64                  10/18
  Verifying  : nagiosxi-nsca-5.6.12-1.el6.x86_64                          11/18
  Verifying  : tftp-0.49-8.el6.x86_64                                     12/18
  Verifying  : nagiosxi-wkhtmltox-5.6.12-1.el6.x86_64                     13/18
  Verifying  : nagiosxi-5.6.12-1.el6.x86_64                               14/18
  Verifying  : nagiosxi-nagiosplugins-5.6.12-1.el6.x86_64                 15/18
  Verifying  : php-devel-5.3.3-50.el6_10.x86_64                           16/18
  Verifying  : nagiosxi-ndoutils-5.6.12-1.el6.x86_64                      17/18
  Verifying  : perl-Nagios-Monitoring-Plugin-0.51-1.el6.noarch            18/18

 

Installed:
  nagiosxi.x86_64 0:5.6.12-1.el6
  nagiosxi-mrtg.x86_64 0:5.6.12-1.el6
  nagiosxi-nagioscore.x86_64 0:5.6.12-1.el6
  nagiosxi-nagiosmobile.x86_64 0:5.6.12-1.el6
  nagiosxi-nagiosplugins.x86_64 0:5.6.12-1.el6
  nagiosxi-nagvis.x86_64 0:5.6.12-1.el6
  nagiosxi-ndoutils.x86_64 0:5.6.12-1.el6
  nagiosxi-nrds.x86_64 0:5.6.12-1.el6
  nagiosxi-nrpe.x86_64 0:5.6.12-1.el6
  nagiosxi-nsca.x86_64 0:5.6.12-1.el6
  nagiosxi-nxti.x86_64 0:5.6.12-1.el6
  nagiosxi-pnp.x86_64 0:5.6.12-1.el6
  nagiosxi-shellinabox.x86_64 0:5.6.12-1.el6
  nagiosxi-wkhtmltox.x86_64 0:5.6.12-1.el6
  nagiosxi-wmic.x86_64 0:5.6.12-1.el6
  perl-Nagios-Monitoring-Plugin.noarch 0:0.51-1.el6

 

Dependency Installed:
  php-devel.x86_64 0:5.3.3-50.el6_10          tftp.x86_64 0:0.49-8.el6

 

Complete!
Uploading Enabled Repositories Report
Loaded plugins: product-id, rhnplugin, subscription-manager
This system is not registered with RHN Classic or RHN Satellite.
You can use rhn_register to register.
RHN Satellite or RHN Classic support will be disabled.
You have new mail in /var/spool/mail/root

Re: Update Fail - 5.6.10 to 5.6.12

Posted: Thu Mar 12, 2020 10:33 am
by scottwilkerson
Are you running upgrade?

Was this first installed as an offline install?