nagios xi upgrade problem

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
erkanerturk
Posts: 53
Joined: Wed Jan 16, 2019 4:35 am

nagios xi upgrade problem

Post by erkanerturk »

Hi
we have a problem for nagiosxi upgrade from 5.7.5 to 5.8.6

it first complaint about package dependency conflicts. we deleted them one by one. but at the end we did not see the new version in nagiosXI web interface
here are the errors (we have removed the conflicting packages and tried upgarde again)

Code: Select all

Error: nagiosxi-shellinabox conflicts with nagiosxi-deps-el7-5.7.5-1.noarch
Error: nagiosxi-shellinabox conflicts with shellinabox-2.20-5.el7.x86_64

#next upgrade attempt
Error: nagiosxi-nxti conflicts with snmptt-1.4.2-1.el7.noarch
it also gave lots of "can not update..., please install ..." messages (see below)

can you guide us..


the full screeshot:

Code: Select all


[root@nagios-server nagiosxi]# ./upgrade 
package nagiosxi-shellinabox is not installed
Loaded plugins: fastestmirror, langpacks
Examining nagiosxi-shellinabox-5.8.6-1.el7.x86_64.rpm: nagiosxi-shellinabox-5.8.6-1.el7.x86_64
Marking nagiosxi-shellinabox-5.8.6-1.el7.x86_64.rpm to be installed
Resolving Dependencies
--> Running transaction check
---> Package nagiosxi-shellinabox.x86_64 0:5.8.6-1.el7 will be installed
--> Processing Conflict: nagiosxi-shellinabox-5.8.6-1.el7.x86_64 conflicts nagiosxi-deps-el7
Determining fastest mirrors
base          				| 3.6 kB  00:00:00     
epel         				| 3.6 kB  00:00:00     
nagios-base   				| 3.6 kB  00:00:00     
nagiosxi-deps 				| 3.6 kB  00:00:00     
(1/8): base/group_gz        		| 153 kB  00:00:00     
(2/8): nagios-base/primary_db 		|  16 kB  00:00:00     
(3/8): nagiosxi-deps/group_gz 		|   20 B  00:00:00     
(4/8): nagiosxi-deps/primary_db 	|  21 kB  00:00:00     
(5/8): epel/group_gz            	|  95 kB  00:00:00     
(6/8): nagios-base/group_gz     	|   20 B  00:00:00     
(7/8): base/primary_db          	| 6.1 MB  00:00:00     
(8/8): epel/primary_db          	| 6.8 MB  00:00:00     
--> Processing Conflict: nagiosxi-shellinabox-5.8.6-1.el7.x86_64 conflicts shellinabox
--> Finished Dependency Resolution
/var/cache/yum/x86_64/7/nagios-base/gen/comps.xml: no element found: line 1, column 0
/var/cache/yum/x86_64/7/nagiosxi-deps/gen/comps.xml: no element found: line 1, column 0
Error: nagiosxi-shellinabox conflicts with nagiosxi-deps-el7-5.7.5-1.noarch
Error: nagiosxi-shellinabox conflicts with shellinabox-2.20-5.el7.x86_64
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest

[root@nagios-server nagiosxi]# rpm -qi nagiosxi-deps-el7
Name        : nagiosxi-deps-el7
Version     : 5.7.5
Release     : 1
Architecture: noarch
Install Date: Fri 13 Nov 2020 09:34:28 AM +03
Group       : Nagios
Size        : 0
License     : GPLv2+
Signature   : (none)
Source RPM  : nagiosxi-deps-el7-5.7.5-1.src.rpm
Build Date  : Thu 12 Nov 2020 01:16:29 AM +03
Build Host  : ubuntu
Relocations : (not relocatable)
URL         : http://www.nagios.com/
Summary     : Dummy package for Nagios XI's dependencies.
Description :
This package does not actually install anything. Rather, it just serves as a meta-package for Nagios XI's dependencies.


[root@nagios-server nagiosxi]# yum deplist  nagiosxi-shellinabox
Loaded plugins: fastestmirror, langpacks
Loading mirror speeds from cached hostfile
package: nagiosxi-shellinabox.x86_64 5.8.6-1.el7
  dependency: /bin/sh
   provider: bash.x86_64 4.2.46-34.el7

[root@nagios-server nagiosxi]# yum remove  nagiosxi-deps-el7 shellinabox
Loaded plugins: fastestmirror, langpacks
Resolving Dependencies
--> Running transaction check
---> Package nagiosxi-deps-el7.noarch 0:5.7.5-1 will be erased
---> Package shellinabox.x86_64 0:2.20-5.el7 will be erased
--> Finished Dependency Resolution
/var/cache/yum/x86_64/7/nagios-base/gen/comps.xml: no element found: line 1, column 0
/var/cache/yum/x86_64/7/nagiosxi-deps/gen/comps.xml: no element found: line 1, column 0

Dependencies Resolved

==============================================================================================================================================================================================================================
Package                              Arch                                           Version                                               Repository                                                 Size
============================================================================================================================================================================================================================
Removing:
nagiosxi-deps-el7                noarch                                         5.7.5-1                                               @/nagiosxi-deps-el7-5.7.5-1.noarch              0.0  
 shellinabox                         x86_64                                         2.20-5.el7                                            @epel                                                       503 k

Transaction Summary
=========================================================================================================================================================================================================================
Remove  2 Packages

Installed size: 503 k
Is this ok [y/N]: y
Downloading packages:
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  Erasing    : nagiosxi-deps-el7-5.7.5-1.noarch                                                                                                                                                                                           1/2 
  Erasing    : shellinabox-2.20-5.el7.x86_64                                                                                                                                                                                              2/2 
warning: /etc/sysconfig/shellinaboxd saved as /etc/sysconfig/shellinaboxd.rpmsave
  Verifying  : nagiosxi-deps-el7-5.7.5-1.noarch                                                                                                                                                                                           1/2 
  Verifying  : shellinabox-2.20-5.el7.x86_64                                                                                                                                                                                              2/2 

Removed:
  nagiosxi-deps-el7.noarch 0:5.7.5-1                                                                                       shellinabox.x86_64 0:2.20-5.el7                                                                                      

Complete!
[root@nagios-server nagiosxi]# ./upgrade 
package nagiosxi-shellinabox is not installed
Loaded plugins: fastestmirror, langpacks
Examining nagiosxi-shellinabox-5.8.6-1.el7.x86_64.rpm: nagiosxi-shellinabox-5.8.6-1.el7.x86_64
Marking nagiosxi-shellinabox-5.8.6-1.el7.x86_64.rpm to be installed
Resolving Dependencies
--> Running transaction check
---> Package nagiosxi-shellinabox.x86_64 0:5.8.6-1.el7 will be installed
--> Finished Dependency Resolution
/var/cache/yum/x86_64/7/nagios-base/gen/comps.xml: no element found: line 1, column 0
/var/cache/yum/x86_64/7/nagiosxi-deps/gen/comps.xml: no element found: line 1, column 0

Dependencies Resolved

=================================================================================================================================================================================================================================================
Package                                                    Arch                                         Version                                            Repository                                                                      Size
=================================================================================================================================================================================================================================================
Installing:
nagiosxi-shellinabox                                    x86_64                                       5.8.6-1.el7                                        /nagiosxi-shellinabox-5.8.6-1.el7.x86_64                                       494 k

Transaction Summary
=================================================================================================================================================================================================================================================
Install  1 Package

Total size: 494 k
Installed size: 494 k
Downloading packages:
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  Installing : nagiosxi-shellinabox-5.8.6-1.el7.x86_64                                                                                                                                                                                       1/1 
Created symlink from /etc/systemd/system/multi-user.target.wants/shellinaboxd.service to /usr/lib/systemd/system/shellinaboxd.service.
  Verifying  : nagiosxi-shellinabox-5.8.6-1.el7.x86_64                                                                                                                                                                                       1/1 

Installed:
  nagiosxi-shellinabox.x86_64 0:5.8.6-1.el7                                                                                                                                                                                                      

Complete!
package nagiosxi-nxti is not installed
Loaded plugins: fastestmirror, langpacks
Examining nagiosxi-nxti-5.8.6-1.el7.x86_64.rpm: nagiosxi-nxti-5.8.6-1.el7.x86_64
Marking nagiosxi-nxti-5.8.6-1.el7.x86_64.rpm to be installed
Resolving Dependencies
--> Running transaction check
---> Package nagiosxi-nxti.x86_64 0:5.8.6-1.el7 will be installed
--> Processing Conflict: nagiosxi-nxti-5.8.6-1.el7.x86_64 conflicts snmptt
Loading mirror speeds from cached hostfile
--> Finished Dependency Resolution
/var/cache/yum/x86_64/7/nagios-base/gen/comps.xml: no element found: line 1, column 0
/var/cache/yum/x86_64/7/nagiosxi-deps/gen/comps.xml: no element found: line 1, column 0
Error: nagiosxi-nxti conflicts with snmptt-1.4.2-1.el7.noarch
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest
[root@nagios-server nagiosxi]# yum remove  snmptt
Loaded plugins: fastestmirror, langpacks
Resolving Dependencies
--> Running transaction check
---> Package snmptt.noarch 0:1.4.2-1.el7 will be erased
--> Finished Dependency Resolution
/var/cache/yum/x86_64/7/nagios-base/gen/comps.xml: no element found: line 1, column 0
/var/cache/yum/x86_64/7/nagiosxi-deps/gen/comps.xml: no element found: line 1, column 0

Dependencies Resolved

=================================================================================================================================================================================================================================================
Package                                                  Arch                                                     Version                                                         Repository                                               Size
=================================================================================================================================================================================================================================================
Removing:
snmptt                                                noarch                                                   1.4.2-1.el7                                                     @epel                                                   565 k

Transaction Summary
=================================================================================================================================================================================================================================================
Remove  1 Package

Installed size: 565 k
Is this ok [y/N]: y
Downloading packages:
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  Erasing    : snmptt-1.4.2-1.el7.noarch                                                                                                                                                                                                     1/1 
warning: /etc/snmp/snmptt.ini saved as /etc/snmp/snmptt.ini.rpmsave
  Verifying  : snmptt-1.4.2-1.el7.noarch                                                                                                                                                                                                     1/1 

Removed:
  snmptt.noarch 0:1.4.2-1.el7                                                                                                                                                                                                                    

Complete!
[root@nagios-server nagiosxi]# ./upgrade 
nagiosxi-shellinabox-5.8.6-1.el7.x86_64
package nagiosxi-nxti is not installed
Loaded plugins: fastestmirror, langpacks
Examining nagiosxi-nxti-5.8.6-1.el7.x86_64.rpm: nagiosxi-nxti-5.8.6-1.el7.x86_64
Marking nagiosxi-nxti-5.8.6-1.el7.x86_64.rpm to be installed
Resolving Dependencies
--> Running transaction check
---> Package nagiosxi-nxti.x86_64 0:5.8.6-1.el7 will be installed
--> Finished Dependency Resolution
/var/cache/yum/x86_64/7/nagios-base/gen/comps.xml: no element found: line 1, column 0
/var/cache/yum/x86_64/7/nagiosxi-deps/gen/comps.xml: no element found: line 1, column 0

Dependencies Resolved

=================================================================================================================================================================================================================================================
Package                                                Arch                                            Version                                                 Repository                                                                  Size
=================================================================================================================================================================================================================================================
Installing:
nagiosxi-nxti                                       x86_64                                          5.8.6-1.el7                                             /nagiosxi-nxti-5.8.6-1.el7.x86_64                                          297 k

Transaction Summary
=================================================================================================================================================================================================================================================
Install  1 Package

Total size: 297 k
Installed size: 297 k
Downloading packages:
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  Installing : nagiosxi-nxti-5.8.6-1.el7.x86_64                                                                                                                                                                                         1/1 
warning: /etc/snmp/snmptt.conf.nxti saved as /etc/snmp/snmptt.conf.nxti.rpmorig
warning: /etc/snmp/snmptt_nxti.bak saved as /etc/snmp/snmptt_nxti.bak.rpmorig
Created symlink from /etc/systemd/system/multi-user.target.wants/snmptt.service to /usr/lib/systemd/system/snmptt.service.
  Verifying  : nagiosxi-nxti-5.8.6-1.el7.x86_64                                                                                                                                                                                         1/1 

Installed:
  nagiosxi-nxti.x86_64 0:5.8.6-1.el7                                                                                                                                                                                                             

Complete!
package perl-Nagios-Monitoring-Plugin is not installed
Loaded plugins: fastestmirror, langpacks
Examining perl-Nagios-Monitoring-Plugin-0.51-1.el7.noarch.rpm: perl-Nagios-Monitoring-Plugin-0.51-1.el7.noarch
Marking perl-Nagios-Monitoring-Plugin-0.51-1.el7.noarch.rpm to be installed
Resolving Dependencies
--> Running transaction check
---> Package perl-Nagios-Monitoring-Plugin.noarch 0:0.51-1.el7 will be installed
--> Finished Dependency Resolution
/var/cache/yum/x86_64/7/nagios-base/gen/comps.xml: no element found: line 1, column 0
/var/cache/yum/x86_64/7/nagiosxi-deps/gen/comps.xml: no element found: line 1, column 0

Dependencies Resolved

=================================================================================================================================================================================================================================================
Package                                                    Arch                                     Version                                       Repository                                                                          Size
============================================================================================================================================================================================================================================
Installing:
perl-Nagios-Monitoring-Plugin                                noarch                                   0.51-1.el7                                    /perl-Nagios-Monitoring-Plugin-0.51-1.el7.noarch                                   115 k

Transaction Summary
=================================================================================================================================================================================================================================================
Install  1 Package

Total size: 115 k
Installed size: 115 k
Downloading packages:
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  Installing : perl-Nagios-Monitoring-Plugin-0.51-1.el7.noarch                                                                                                                                                                               1/1 
  Verifying  : perl-Nagios-Monitoring-Plugin-0.51-1.el7.noarch                                                                                                                                                                               1/1 

Installed:
  perl-Nagios-Monitoring-Plugin.noarch 0:0.51-1.el7                                                                                                                                                                                              

Complete!
Loaded plugins: fastestmirror, langpacks
Examining fping-3.10-4.el7.x86_64.rpm: fping-3.10-4.el7.x86_64
fping-3.10-4.el7.x86_64.rpm: does not update installed package.
Examining freetds-0.95.81-1.el7.x86_64.rpm: freetds-0.95.81-1.el7.x86_64
freetds-0.95.81-1.el7.x86_64.rpm: does not update installed package.
Examining jwhois-4.0-38.el7.x86_64.rpm: jwhois-4.0-38.el7.x86_64
jwhois-4.0-38.el7.x86_64.rpm: does not update installed package.
Examining libc-client-2007f-16.el7.x86_64.rpm: libc-client-2007f-16.el7.x86_64
libc-client-2007f-16.el7.x86_64.rpm: does not update installed package.
Examining libidn2-2.0.4-4.el7.x86_64.rpm: libidn2-2.0.4-4.el7.x86_64
libidn2-2.0.4-4.el7.x86_64.rpm: does not update installed package.
Examining libmcrypt-2.5.8-13.el7.x86_64.rpm: libmcrypt-2.5.8-13.el7.x86_64
libmcrypt-2.5.8-13.el7.x86_64.rpm: does not update installed package.
Examining nagiosxi-5.8.6-1.el7.x86_64.rpm: nagiosxi-5.8.6-1.el7.x86_64
Package nagiosxi not installed, cannot update it. Run yum install to install it instead.
Examining nagiosxi-mrtg-5.8.6-1.el7.x86_64.rpm: nagiosxi-mrtg-5.8.6-1.el7.x86_64
Package nagiosxi-mrtg not installed, cannot update it. Run yum install to install it instead.
Examining nagiosxi-nagioscore-5.8.6-1.el7.x86_64.rpm: nagiosxi-nagioscore-5.8.6-1.el7.x86_64
Package nagiosxi-nagioscore not installed, cannot update it. Run yum install to install it instead.
Examining nagiosxi-nagiosplugins-5.8.6-1.el7.x86_64.rpm: nagiosxi-nagiosplugins-5.8.6-1.el7.x86_64
Package nagiosxi-nagiosplugins not installed, cannot update it. Run yum install to install it instead.
Examining nagiosxi-nagvis-5.8.6-1.el7.x86_64.rpm: nagiosxi-nagvis-5.8.6-1.el7.x86_64
Package nagiosxi-nagvis not installed, cannot update it. Run yum install to install it instead.
Examining nagiosxi-ndoutils-5.8.6-1.el7.x86_64.rpm: nagiosxi-ndoutils-5.8.6-1.el7.x86_64
Package nagiosxi-ndoutils not installed, cannot update it. Run yum install to install it instead.
Examining nagiosxi-nrds-5.8.6-1.el7.x86_64.rpm: nagiosxi-nrds-5.8.6-1.el7.x86_64
Package nagiosxi-nrds not installed, cannot update it. Run yum install to install it instead.
Examining nagiosxi-nrpe-5.8.6-1.el7.x86_64.rpm: nagiosxi-nrpe-5.8.6-1.el7.x86_64
Package nagiosxi-nrpe not installed, cannot update it. Run yum install to install it instead.
Examining nagiosxi-nsca-5.8.6-1.el7.x86_64.rpm: nagiosxi-nsca-5.8.6-1.el7.x86_64
Package nagiosxi-nsca not installed, cannot update it. Run yum install to install it instead.
Examining nagiosxi-nxti-5.8.6-1.el7.x86_64.rpm: nagiosxi-nxti-5.8.6-1.el7.x86_64
nagiosxi-nxti-5.8.6-1.el7.x86_64.rpm: does not update installed package.
Examining nagiosxi-pnp-5.8.6-1.el7.x86_64.rpm: nagiosxi-pnp-5.8.6-1.el7.x86_64
Package nagiosxi-pnp not installed, cannot update it. Run yum install to install it instead.
Examining nagiosxi-shellinabox-5.8.6-1.el7.x86_64.rpm: nagiosxi-shellinabox-5.8.6-1.el7.x86_64
nagiosxi-shellinabox-5.8.6-1.el7.x86_64.rpm: does not update installed package.
Examining nagiosxi-wkhtmltox-5.8.6-1.el7.x86_64.rpm: nagiosxi-wkhtmltox-5.8.6-1.el7.x86_64
Package nagiosxi-wkhtmltox not installed, cannot update it. Run yum install to install it instead.
Examining nagiosxi-wmic-5.8.6-1.el7.x86_64.rpm: nagiosxi-wmic-5.8.6-1.el7.x86_64
Package nagiosxi-wmic not installed, cannot update it. Run yum install to install it instead.
Examining nmap-6.47-2.x86_64.rpm: 2:nmap-6.47-2.x86_64
Marking nmap-6.47-2.x86_64.rpm as an update to 2:nmap-6.40-19.el7.x86_64
Examining perl-Class-Accessor-0.34-12.el7.noarch.rpm: perl-Class-Accessor-0.34-12.el7.noarch
perl-Class-Accessor-0.34-12.el7.noarch.rpm: does not update installed package.
Examining perl-Config-IniFiles-2.79-1.el7.noarch.rpm: perl-Config-IniFiles-2.79-1.el7.noarch
perl-Config-IniFiles-2.79-1.el7.noarch.rpm: does not update installed package.
Examining perl-Crypt-Rijndael-1.12-1.el7.x86_64.rpm: perl-Crypt-Rijndael-1.12-1.el7.x86_64
perl-Crypt-Rijndael-1.12-1.el7.x86_64.rpm: does not update installed package.
Examining perl-Mail-IMAPClient-3.37-1.el7.noarch.rpm: perl-Mail-IMAPClient-3.37-1.el7.noarch
perl-Mail-IMAPClient-3.37-1.el7.noarch.rpm: does not update installed package.
Examining perl-Mail-POP3Client-2.19-5.el7.noarch.rpm: perl-Mail-POP3Client-2.19-5.el7.noarch
Package perl-Mail-POP3Client not installed, cannot update it. Run yum install to install it instead.
Examining perl-Math-Calc-Units-1.07-9.el7.noarch.rpm: perl-Math-Calc-Units-1.07-9.el7.noarch
perl-Math-Calc-Units-1.07-9.el7.noarch.rpm: does not update installed package.
Examining perl-Nagios-Monitoring-Plugin-0.51-1.el7.noarch.rpm: perl-Nagios-Monitoring-Plugin-0.51-1.el7.noarch
perl-Nagios-Monitoring-Plugin-0.51-1.el7.noarch.rpm: does not update installed package.
Examining perl-Net-SMTP-TLS-0.12-1.el7.noarch.rpm: perl-Net-SMTP-TLS-0.12-1.of.el7.noarch
Package perl-Net-SMTP-TLS not installed, cannot update it. Run yum install to install it instead.
Examining perl-Net-SNMP-6.0.1-7.el7.noarch.rpm: perl-Net-SNMP-6.0.1-7.el7.noarch
perl-Net-SNMP-6.0.1-7.el7.noarch.rpm: does not update installed package.
Examining perl-Number-Format-1.73-14.el7.noarch.rpm: perl-Number-Format-1.73-14.el7.noarch
perl-Number-Format-1.73-14.el7.noarch.rpm: does not update installed package.
Examining php-imap-5.4.16-7.el7.x86_64.rpm: php-imap-5.4.16-7.el7.x86_64
php-imap-5.4.16-7.el7.x86_64.rpm: does not update installed package.
Examining php-mcrypt-5.4.16-7.el7.x86_64.rpm: php-mcrypt-5.4.16-7.el7.x86_64
Package php-mcrypt not installed, cannot update it. Run yum install to install it instead.
Examining php-mssql-5.4.16-7.el7.x86_64.rpm: php-mssql-5.4.16-7.el7.x86_64
php-mssql-5.4.16-7.el7.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
Package php-pear-HTML-Template-IT not installed, cannot update it. Run yum install to install it instead.
Examining php-pecl-ssh2-0.12-1.el7.x86_64.rpm: php-pecl-ssh2-0.12-1.el7.x86_64
php-pecl-ssh2-0.12-1.el7.x86_64.rpm: does not update installed package.
Examining python-bson-2.5.2-4.el7.x86_64.rpm: python-bson-2.5.2-4.el7.x86_64
Package python-bson not installed, cannot update it. Run yum install to install it instead.
Examining python-pymongo-2.5.2-4.el7.x86_64.rpm: python-pymongo-2.5.2-4.el7.x86_64
Package python-pymongo not installed, cannot update it. Run yum install to install it instead.
Examining python-pymssql-2.1.1-1.el7.x86_64.rpm: python-pymssql-2.1.1-1.el7.x86_64
Cannot install package python-pymssql-2.1.1-1.el7.x86_64. It is obsoleted by installed package python2-pymssql-2.1.4-1.el7.x86_64
Examining python-simplejson-3.3.3-1.el7.x86_64.rpm: python-simplejson-3.3.3-1.el7.x86_64
Cannot install package python-simplejson-3.3.3-1.el7.x86_64. It is obsoleted by installed package python2-simplejson-3.10.0-2.el7.x86_64
Examining rrdtool-1.4.9-1.el7.x86_64.rpm: rrdtool-1.4.9-1.el7.x86_64
Marking rrdtool-1.4.9-1.el7.x86_64.rpm as an update to rrdtool-1.4.8-9.el7.x86_64
Examining rrdtool-devel-1.4.9-1.el7.x86_64.rpm: rrdtool-devel-1.4.9-1.el7.x86_64
Package rrdtool-devel not installed, cannot update it. Run yum install to install it instead.
Examining rrdtool-perl-1.4.9-1.el7.x86_64.rpm: rrdtool-perl-1.4.9-1.el7.x86_64
Marking rrdtool-perl-1.4.9-1.el7.x86_64.rpm as an update to rrdtool-perl-1.4.8-9.el7.x86_64
Examining rrdtool-python-1.4.9-1.el7.x86_64.rpm: rrdtool-python-1.4.9-1.el7.x86_64
Marking rrdtool-python-1.4.9-1.el7.x86_64.rpm as an update to rrdtool-python-1.4.8-9.el7.x86_64
Resolving Dependencies
--> Running transaction check
---> Package nmap.x86_64 2:6.40-19.el7 will be updated
---> Package nmap.x86_64 2:6.47-2 will be an update
---> Package rrdtool.x86_64 0:1.4.8-9.el7 will be updated
---> Package rrdtool.x86_64 0:1.4.9-1.el7 will be an update
--> Processing Dependency: dejavu-lgc-sans-fonts for package: rrdtool-1.4.9-1.el7.x86_64
Loading mirror speeds from cached hostfile
--> Processing Dependency: dejavu-lgc-sans-mono-fonts for package: rrdtool-1.4.9-1.el7.x86_64
--> Processing Dependency: dejavu-serif-fonts for package: rrdtool-1.4.9-1.el7.x86_64
---> Package rrdtool-perl.x86_64 0:1.4.8-9.el7 will be updated
---> Package rrdtool-perl.x86_64 0:1.4.9-1.el7 will be an update
---> Package rrdtool-python.x86_64 0:1.4.8-9.el7 will be updated
---> Package rrdtool-python.x86_64 0:1.4.9-1.el7 will be an update
--> Running transaction check
---> Package dejavu-lgc-sans-fonts.noarch 0:2.33-6.el7 will be installed
---> Package dejavu-lgc-sans-mono-fonts.noarch 0:2.33-6.el7 will be installed
---> Package dejavu-serif-fonts.noarch 0:2.33-6.el7 will be installed
--> Finished Dependency Resolution
/var/cache/yum/x86_64/7/nagios-base/gen/comps.xml: no element found: line 1, column 0
/var/cache/yum/x86_64/7/nagiosxi-deps/gen/comps.xml: no element found: line 1, column 0

Dependencies Resolved

=================================================================================================================================================================================================================================================
Package                                                          Arch                                         Version                                            Repository                                                                Size
=================================================================================================================================================================================================================================================
Updating:
nmap                                                           x86_64                                       2:6.47-2                                           /nmap-6.47-2.x86_64                                                       18 M
rrdtool                                                        x86_64                                       1.4.9-1.el7                                        /rrdtool-1.4.9-1.el7.x86_64                                              975 k
rrdtool-perl                                                   x86_64                                       1.4.9-1.el7                                        /rrdtool-perl-1.4.9-1.el7.x86_64                                          58 k
rrdtool-python                                                 x86_64                                       1.4.9-1.el7                                        /rrdtool-python-1.4.9-1.el7.x86_64                                        49 k
Installing for dependencies:
dejavu-lgc-sans-fonts                                          noarch                                       2.33-6.el7                                         base                                                                     1.0 M
dejavu-lgc-sans-mono-fonts                                     noarch                                       2.33-6.el7                                         base                                                                     359 k
dejavu-serif-fonts                                             noarch                                       2.33-6.el7                                         base                                                                     776 k

Transaction Summary
=================================================================================================================================================================================================================================================
Install             ( 3 Dependent packages)
Upgrade  4 Packages

Total size: 21 M
Total download size: 2.2 M
Downloading packages:
(1/3): dejavu-lgc-sans-mono-fonts-2.33-6.el7.noarch.rpm                                                                                                                                                                   | 359 kB  00:00:00     
(2/3): dejavu-lgc-sans-fonts-2.33-6.el7.noarch.rpm                                                                                                                                                                        | 1.0 MB  00:00:00     
(3/3): dejavu-serif-fonts-2.33-6.el7.noarch.rpm                                                                                                                                                                           | 776 kB  00:00:00     
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Total                                                                                                                                                                                                             12 MB/s | 2.2 MB  00:00:00     
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  Installing : dejavu-lgc-sans-mono-fonts-2.33-6.el7.noarch                                                                                                                                                                                 1/11 
  Installing : dejavu-serif-fonts-2.33-6.el7.noarch                                                                                                                                                                                         2/11 
  Installing : dejavu-lgc-sans-fonts-2.33-6.el7.noarch                                                                                                                                                                                      3/11 
  Updating   : rrdtool-1.4.9-1.el7.x86_64                                                                                                                                                                                                   4/11 
  Updating   : rrdtool-perl-1.4.9-1.el7.x86_64                                                                                                                                                                                              5/11 
  Updating   : rrdtool-python-1.4.9-1.el7.x86_64                                                                                                                                                                                            6/11 
  Updating   : 2:nmap-6.47-2.x86_64                                                                                                                                                                                                         7/11 
  Cleanup    : rrdtool-python-1.4.8-9.el7.x86_64                                                                                                                                                                                            8/11 
  Cleanup    : rrdtool-perl-1.4.8-9.el7.x86_64                                                                                                                                                                                              9/11 
  Cleanup    : rrdtool-1.4.8-9.el7.x86_64                                                                                                                                                                                                  10/11 
  Cleanup    : 2:nmap-6.40-19.el7.x86_64                                                                                                                                                                                                   11/11 
  Verifying  : rrdtool-perl-1.4.9-1.el7.x86_64                                                                                                                                                                                              1/11 
  Verifying  : dejavu-lgc-sans-fonts-2.33-6.el7.noarch                                                                                                                                                                                      2/11 
  Verifying  : dejavu-serif-fonts-2.33-6.el7.noarch                                                                                                                                                                                         3/11 
  Verifying  : dejavu-lgc-sans-mono-fonts-2.33-6.el7.noarch                                                                                                                                                                                 4/11 
  Verifying  : 2:nmap-6.47-2.x86_64                                                                                                                                                                                                         5/11 
  Verifying  : rrdtool-1.4.9-1.el7.x86_64                                                                                                                                                                                                   6/11 
  Verifying  : rrdtool-python-1.4.9-1.el7.x86_64                                                                                                                                                                                            7/11 
  Verifying  : rrdtool-perl-1.4.8-9.el7.x86_64                                                                                                                                                                                              8/11 
  Verifying  : rrdtool-1.4.8-9.el7.x86_64                                                                                                                                                                                                   9/11 
  Verifying  : rrdtool-python-1.4.8-9.el7.x86_64                                                                                                                                                                                           10/11 
  Verifying  : 2:nmap-6.40-19.el7.x86_64                                                                                                                                                                                                   11/11 

Dependency Installed:
  dejavu-lgc-sans-fonts.noarch 0:2.33-6.el7                                      dejavu-lgc-sans-mono-fonts.noarch 0:2.33-6.el7                                      dejavu-serif-fonts.noarch 0:2.33-6.el7                                     

Updated:
  nmap.x86_64 2:6.47-2                               rrdtool.x86_64 0:1.4.9-1.el7                               rrdtool-perl.x86_64 0:1.4.9-1.el7                               rrdtool-python.x86_64 0:1.4.9-1.el7                              

Complete!
[root@nagios-server nagiosxi]# echo $?
0
[root@nagios-server nagiosxi]# 
[root@nagios-server nagiosxi]# 

User avatar
pbroste
Posts: 1288
Joined: Tue Jun 01, 2021 1:27 pm

Re: nagios xi upgrade problem

Post by pbroste »

Hello @erkanerturk

Thanks for reaching out, want to take a look at things to get an idea of what is going on. Please provide the following:

Code: Select all

cat /usr/local/nagiosxi/var/xiversion | grep full
sudo cat /etc/os-release
 sudo uname -a
sudo hostnamectl
yum repolist >/tmp/yum.txt
yum list >>/tmp/yum.txt
Also, go ahead and run an update on the distro and provide the results:

Code: Select all

yum update -y
Please run the upgrade and send the upgrade.log and the '/tmp/upgraderesults.txt':

Code: Select all

bash -x upgrade | tee /tmp/upgraderesults.txt
Thanks,
Perry
erkanerturk
Posts: 53
Joined: Wed Jan 16, 2019 4:35 am

Re: nagios xi upgrade problem

Post by erkanerturk »

hi

thanks for your answer.. but please look at my first post. you will see that ./upgrade does not run because of package conflicts and exists.
if you still insists on running "bash -x upgrde" , i can do that after taking a vm snapshot..

here are the outputs.. and yum.ttx are send as a priv message

$cat /usr/local/nagiosxi/var/xiversion | grep full
full=5.7.5
[root@nserver ~]# sudo cat /etc/os-release
NAME="CentOS Linux"
VERSION="7 (Core)"
ID="centos"
ID_LIKE="rhel fedora"
VERSION_ID="7"
PRETTY_NAME="CentOS Linux 7 (Core)"
ANSI_COLOR="0;31"
CPE_NAME="cpe:/o:centos:centos:7"
HOME_URL="https://www.centos.org/"
BUG_REPORT_URL="https://bugs.centos.org/"

CENTOS_MANTISBT_PROJECT="CentOS-7"
CENTOS_MANTISBT_PROJECT_VERSION="7"
REDHAT_SUPPORT_PRODUCT="centos"
REDHAT_SUPPORT_PRODUCT_VERSION="7"

[root@nserver ~]# sudo uname -a
Linux nserver 3.10.0-1160.el7.x86_64 #1 SMP Mon Oct 19 16:18:59 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux
[root@nserver ~]# sudo hostnamectl
Static hostname: nserver
Icon name: computer-vm
Chassis: vm
Machine ID: 72ed02e694fb494aa804bc61bb8a087a
Boot ID: e39d5aadf39b47b78983296379ccf4f6
Virtualization: vmware
Operating System: CentOS Linux 7 (Core)
CPE OS Name: cpe:/o:centos:centos:7
Kernel: Linux 3.10.0-1160.el7.x86_64
Architecture: x86-64

[root@nserver ~]# yum repolist >/tmp/yum.txt
[root@nserver ~]# yum list >>/tmp/yum.txt

[root@nserver ~]# yum update
Loaded plugins: fastestmirror, langpacks
Loading mirror speeds from cached hostfile
base | 3.6 kB 00:00:00
epel | 3.6 kB 00:00:00
nagios-base | 3.6 kB 00:00:00
Resolving Dependencies
--> Running transaction check
---> Package nagios-repo.noarch 0:7-3.el7 will be updated
---> Package nagios-repo.noarch 0:7-4.el7 will be an update
--> Finished Dependency Resolution
/var/cache/yum/x86_64/7/nagios-base/gen/comps.xml: no element found: line 1, column 0

Dependencies Resolved

==========================================================================================================================================================================
Package Arch Version Repository Size
==========================================================================================================================================================================
Updating:
nagios-repo noarch 7-4.el7 nagios-base 6.0 k

Transaction Summary
==========================================================================================================================================================================
Upgrade 1 Package

Total download size: 6.0 k
Is this ok [y/d/N]: N
Exiting on user command
Your transaction was saved, rerun it with:
yum load-transaction /tmp/yum_save_tx.2021-11-03.16-17.sa4Ypn.yumtx
User avatar
pbroste
Posts: 1288
Joined: Tue Jun 01, 2021 1:27 pm

Re: nagios xi upgrade problem

Post by pbroste »

Hello @erkanerturk

Thanks for following up, we see that there was a package that was updated and want to get an updated event log on the 'upgrade' script when executed.

Please run the following and send the results, you can go ahead and compare the results on the upgrade that I just ran.

Code: Select all

bash -x upgrade | tee /tmp/myupgrade.txt
Please send the results on the '/tmp/myupgrade.txt. Attached is a copy of the upgrade that I just completed.

Thanks,
Perry
You do not have the required permissions to view the files attached to this post.
erkanerturk
Posts: 53
Joined: Wed Jan 16, 2019 4:35 am

Re: nagios xi upgrade problem

Post by erkanerturk »

Hi
I have sent the myupgrade.txt file with PM.

when I use upgrade command. i see that nagios XI version was still the same.. ih vae loggedin out,restarted nagios but still same.

then i have run the following commands

Code: Select all

rpm2cpio nagiosxi-5.8.6-1.el7.x86_64.rpm​ | cpio -idmv
cd tmp/nagiosxi
./rpmupgrade

==============================
[root@arsa nagiosxi]# ./rpmupgrade
Archive:  sourceguardian/ixed4.lin.x86-64.zip
  inflating: /usr/lib64/php/modules/ixed.5.4.lin  
Sourceguardian extension found for PHP version 5.4
Sourceguardian extension already in php.ini
Redirecting to /bin/systemctl restart httpd.service
Checking required prereqs... 
Please wait... 

Could not resolve host: api.nagios.com; Name or service not known
Copying over new XI directory...
Patching NDOUtils...
NDOUtils already patched at level 103
Updating sequences...
Postgres Database not being used
Fixing config file permissions...
Fixing htpasswd permissions...
Checking group memberships...
Installing new XI templates...

--- reset_config_perms.sh ------------
> Setting script permissions
> Setting CCM script permissions
> Setting special script permissions
> Setting special component script permissions
> Setting migrate permissions
> Setting configuration file/directory permissions
> Setting perfdata directory and RRD permissions
> Setting libexec directory permissions
> Setting Nagios XI config permissions
> Setting NOM checkpoint user:group permissions
> + Setting CCM configuration file user:group permissions
> + Setting Recurring Downtime file user:group permissions
> + Setting BPI configuration file user:group permissions
--------------------------------------

--- ccm_import.php -------------------
> Setting import directory: /usr/local/nagios/etc/import/
> Importing config files into the CCM
  - Importing: /usr/local/nagios/etc/import/xi_timeperiod_24x7.cfg .. SUCCESS
--------------------------------------

--- ccm_export.php -------------------
> Writing CCM configuration to Nagios files
  Finished writing out configuraton
--------------------------------------

--------------------------------------
> Verifying configuration with Nagios Core
> Output: 
Nagios Core 4.4.6
Copyright (c) 2009-present Nagios Core Development Team and Community Contributors
Copyright (c) 1999-2009 Ethan Galstad
Last Modified: 2020-04-28
License: GPL

Website: https://www.nagios.org
Reading configuration data...
   Read main config file okay...
Warning: Duplicate definition found for service 'Ping' on host 'SS_Nagios_NA_10.11.12.4' (config file '/usr/local/nagios/etc/services/BA_Dah_10.12.16.107.cfg', starting on line 16)
......
  Read object config files okay...

Running pre-flight check on configuration data...

Checking objects...
Checked 13682 services.
...
Checked 1948 hosts.
Checked 56 host groups.
Checked 1 service groups.
Checked 93 contacts.
Checked 20 contact groups.
Checked 168 commands.
Checked 100 time periods.
Checked 0 host escalations.
Checked 0 service escalations.
Checking for circular paths...
Checked 1948 hosts
Checked 0 service dependencies
Checked 0 host dependencies
Checked 100 timeperiods
Checking global event handlers...
Checking obsessive compulsive processor commands...
Checking misc settings...

Total Warnings: 2
Total Errors:   0

Things look okay - No serious problems were detected during the pre-flight check
> Return Code: 0
--------------------------------------


when i logout then login, i saw the upgraded version. but i was not sure whether this process is correct.


please advise..
User avatar
pbroste
Posts: 1288
Joined: Tue Jun 01, 2021 1:27 pm

Re: nagios xi upgrade problem

Post by pbroste »

Hello @erkanerturk

Thanks for following up, after review, we do not see any failures on the 'upgrade' and want to verify with your System Profile.

Please provide the results:

Code: Select all

cat /usr/local/nagiosxi/var/xiversion | grep full
sudo cat /etc/os-release
 sudo uname -a
sudo hostnamectl
cat /etc/os-release
uname -a
php -v
To send us your system profile.
  • Login to the Nagios XI GUI using a web browser.
  • Click the "Admin" > "System Profile" Menu
  • Click the "Download Profile" button
  • Save the profile.zip file and send via Private Message
Thanks,
Perry
erkanerturk
Posts: 53
Joined: Wed Jan 16, 2019 4:35 am

Re: nagios xi upgrade problem

Post by erkanerturk »

hi
due to organizational policies, i can not share our system profile.. But we can study proifle through a support session. note that our system is in a air gapped network..
i will provide you with other command outputs, when i arrive my office
User avatar
pbroste
Posts: 1288
Joined: Tue Jun 01, 2021 1:27 pm

Re: nagios xi upgrade problem

Post by pbroste »

Thanks, @erkanerturk for the update, and will wait for further updates from you.

Please let us know how we can help you further,
Perry
Locked