NagiosXI offline upgrade script issues

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
brandondash
Posts: 48
Joined: Fri Jan 27, 2017 9:02 am

NagiosXI offline upgrade script issues

Post by brandondash »

Our latest upgrade effort has run into problems (5.7.3 to 5.8.4). We ran the script detailed here https://repo.nagios.com/?repo=offline and it finished without complaint.

When we log in to the server through the web portal, it still has the original version number listed. In addition, there is no xi-upgrade.log on the file system. It's as if the upgrade script updated the RPMs then decided to stop early. Without the log file I don't know how to begin troubleshooting.

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

Re: NagiosXI offline upgrade script issues

Post by pbroste »

Hello @brandondash,

What do you get for results on this:

Code: Select all

./upgrade -n 2>&1 | tee /tmp/nagiosxi/upgrade.log
And do you see anything of interest that is related to the failed upgrade in:

Code: Select all

/var/log/messages
Thanks,
Perry
brandondash
Posts: 48
Joined: Fri Jan 27, 2017 9:02 am

Re: NagiosXI offline upgrade script issues

Post by brandondash »

Nothing obvious in /var/log/messages to indicated a failed install or upgrade. Just the usual "SERVICE NOTIFICATION" entries.

Contents of the captured upgrade log:

Code: Select all

nagiosxi-shellinabox-5.7.3-2.el7.x86_64
nagiosxi-nxti-5.7.3-2.el7.x86_64
perl-Nagios-Monitoring-Plugin-0.51-1.el7.noarch
Loaded plugins: product-id, search-disabled-repos, subscription-manager

This system is not registered with an entitlement server. You can use subscription-manager to register.

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.4-1.el7.x86_64.rpm: nagiosxi-5.8.4-1.el7.x86_64
Package nagiosxi not installed, cannot update it. Run yum install to install it instead.
Examining nagiosxi-mrtg-5.8.4-1.el7.x86_64.rpm: nagiosxi-mrtg-5.8.4-1.el7.x86_64
Marking nagiosxi-mrtg-5.8.4-1.el7.x86_64.rpm as an update to nagiosxi-mrtg-5.7.3-2.el7.x86_64
Examining nagiosxi-nagioscore-5.8.4-1.el7.x86_64.rpm: nagiosxi-nagioscore-5.8.4-1.el7.x86_64
Marking nagiosxi-nagioscore-5.8.4-1.el7.x86_64.rpm as an update to nagiosxi-nagioscore-5.7.3-2.el7.x86_64
Examining nagiosxi-nagiosplugins-5.8.4-1.el7.x86_64.rpm: nagiosxi-nagiosplugins-5.8.4-1.el7.x86_64
Marking nagiosxi-nagiosplugins-5.8.4-1.el7.x86_64.rpm as an update to nagiosxi-nagiosplugins-5.7.3-2.el7.x86_64
Examining nagiosxi-nagvis-5.8.4-1.el7.x86_64.rpm: nagiosxi-nagvis-5.8.4-1.el7.x86_64
Marking nagiosxi-nagvis-5.8.4-1.el7.x86_64.rpm as an update to nagiosxi-nagvis-5.7.3-2.el7.x86_64
Examining nagiosxi-ndoutils-5.8.4-1.el7.x86_64.rpm: nagiosxi-ndoutils-5.8.4-1.el7.x86_64
Marking nagiosxi-ndoutils-5.8.4-1.el7.x86_64.rpm as an update to nagiosxi-ndoutils-5.7.3-2.el7.x86_64
Examining nagiosxi-nrds-5.8.4-1.el7.x86_64.rpm: nagiosxi-nrds-5.8.4-1.el7.x86_64
Marking nagiosxi-nrds-5.8.4-1.el7.x86_64.rpm as an update to nagiosxi-nrds-5.7.3-2.el7.x86_64
Examining nagiosxi-nrpe-5.8.4-1.el7.x86_64.rpm: nagiosxi-nrpe-5.8.4-1.el7.x86_64
Marking nagiosxi-nrpe-5.8.4-1.el7.x86_64.rpm as an update to nagiosxi-nrpe-5.7.3-2.el7.x86_64
Examining nagiosxi-nsca-5.8.4-1.el7.x86_64.rpm: nagiosxi-nsca-5.8.4-1.el7.x86_64
Marking nagiosxi-nsca-5.8.4-1.el7.x86_64.rpm as an update to nagiosxi-nsca-5.7.3-2.el7.x86_64
Examining nagiosxi-nxti-5.8.4-1.el7.x86_64.rpm: nagiosxi-nxti-5.8.4-1.el7.x86_64
Marking nagiosxi-nxti-5.8.4-1.el7.x86_64.rpm as an update to nagiosxi-nxti-5.7.3-2.el7.x86_64
Examining nagiosxi-pnp-5.8.4-1.el7.x86_64.rpm: nagiosxi-pnp-5.8.4-1.el7.x86_64
Marking nagiosxi-pnp-5.8.4-1.el7.x86_64.rpm as an update to nagiosxi-pnp-5.7.3-2.el7.x86_64
Examining nagiosxi-shellinabox-5.8.4-1.el7.x86_64.rpm: nagiosxi-shellinabox-5.8.4-1.el7.x86_64
Marking nagiosxi-shellinabox-5.8.4-1.el7.x86_64.rpm as an update to nagiosxi-shellinabox-5.7.3-2.el7.x86_64
Examining nagiosxi-wkhtmltox-5.8.4-1.el7.x86_64.rpm: nagiosxi-wkhtmltox-5.8.4-1.el7.x86_64
Marking nagiosxi-wkhtmltox-5.8.4-1.el7.x86_64.rpm as an update to nagiosxi-wkhtmltox-5.7.3-2.el7.x86_64
Examining nagiosxi-wmic-5.8.4-1.el7.x86_64.rpm: nagiosxi-wmic-5.8.4-1.el7.x86_64
Marking nagiosxi-wmic-5.8.4-1.el7.x86_64.rpm as an update to nagiosxi-wmic-5.7.3-2.el7.x86_64
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.47-1.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
perl-Mail-POP3Client-2.19-5.el7.noarch.rpm: does not update installed package.
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
perl-Net-SMTP-TLS-0.12-1.el7.noarch.rpm: does not update installed package.
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
php-mcrypt-5.4.16-7.el7.x86_64.rpm: does not update installed package.
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
php-pear-HTML-Template-IT-1.3.0-2.el5.noarch.rpm: does not update installed package.
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
python-bson-2.5.2-4.el7.x86_64.rpm: does not update installed package.
Examining python-pymongo-2.5.2-4.el7.x86_64.rpm: python-pymongo-2.5.2-4.el7.x86_64
python-pymongo-2.5.2-4.el7.x86_64.rpm: does not update installed package.
Examining python-pymssql-2.1.1-1.el7.x86_64.rpm: python-pymssql-2.1.1-1.el7.x86_64
python-pymssql-2.1.1-1.el7.x86_64.rpm: does not update installed package.
Examining python-simplejson-3.3.3-1.el7.x86_64.rpm: python-simplejson-3.3.3-1.el7.x86_64
python-simplejson-3.3.3-1.el7.x86_64.rpm: does not update installed package.
Examining rrdtool-1.4.9-1.el7.x86_64.rpm: rrdtool-1.4.9-1.el7.x86_64
rrdtool-1.4.9-1.el7.x86_64.rpm: does not update installed package.
Examining rrdtool-devel-1.4.9-1.el7.x86_64.rpm: rrdtool-devel-1.4.9-1.el7.x86_64
rrdtool-devel-1.4.9-1.el7.x86_64.rpm: does not update installed package.
Examining rrdtool-perl-1.4.9-1.el7.x86_64.rpm: rrdtool-perl-1.4.9-1.el7.x86_64
rrdtool-perl-1.4.9-1.el7.x86_64.rpm: does not update installed package.
Examining rrdtool-python-1.4.9-1.el7.x86_64.rpm: rrdtool-python-1.4.9-1.el7.x86_64
rrdtool-python-1.4.9-1.el7.x86_64.rpm: does not update installed package.
Resolving Dependencies
--> Running transaction check
---> Package nagiosxi-mrtg.x86_64 0:5.7.3-2.el7 will be updated
---> Package nagiosxi-mrtg.x86_64 0:5.8.4-1.el7 will be an update
---> Package nagiosxi-nagioscore.x86_64 0:5.7.3-2.el7 will be updated
---> Package nagiosxi-nagioscore.x86_64 0:5.8.4-1.el7 will be an update
---> Package nagiosxi-nagiosplugins.x86_64 0:5.7.3-2.el7 will be updated
---> Package nagiosxi-nagiosplugins.x86_64 0:5.8.4-1.el7 will be an update
---> Package nagiosxi-nagvis.x86_64 0:5.7.3-2.el7 will be updated
---> Package nagiosxi-nagvis.x86_64 0:5.8.4-1.el7 will be an update
---> Package nagiosxi-ndoutils.x86_64 0:5.7.3-2.el7 will be updated
---> Package nagiosxi-ndoutils.x86_64 0:5.8.4-1.el7 will be an update
---> Package nagiosxi-nrds.x86_64 0:5.7.3-2.el7 will be updated
---> Package nagiosxi-nrds.x86_64 0:5.8.4-1.el7 will be an update
---> Package nagiosxi-nrpe.x86_64 0:5.7.3-2.el7 will be updated
---> Package nagiosxi-nrpe.x86_64 0:5.8.4-1.el7 will be an update
---> Package nagiosxi-nsca.x86_64 0:5.7.3-2.el7 will be updated
---> Package nagiosxi-nsca.x86_64 0:5.8.4-1.el7 will be an update
---> Package nagiosxi-nxti.x86_64 0:5.7.3-2.el7 will be updated
---> Package nagiosxi-nxti.x86_64 0:5.8.4-1.el7 will be an update
---> Package nagiosxi-pnp.x86_64 0:5.7.3-2.el7 will be updated
---> Package nagiosxi-pnp.x86_64 0:5.8.4-1.el7 will be an update
---> Package nagiosxi-shellinabox.x86_64 0:5.7.3-2.el7 will be updated
---> Package nagiosxi-shellinabox.x86_64 0:5.8.4-1.el7 will be an update
---> Package nagiosxi-wkhtmltox.x86_64 0:5.7.3-2.el7 will be updated
---> Package nagiosxi-wkhtmltox.x86_64 0:5.8.4-1.el7 will be an update
---> Package nagiosxi-wmic.x86_64 0:5.7.3-2.el7 will be updated
---> Package nagiosxi-wmic.x86_64 0:5.8.4-1.el7 will be an update
---> Package nmap.x86_64 2:6.47-1 will be updated
---> Package nmap.x86_64 2:6.47-2 will be an update
--> Finished Dependency Resolution

Dependencies Resolved

================================================================================
 Package       Arch   Version     Repository                               Size
================================================================================
Updating:
 nagiosxi-mrtg x86_64 5.8.4-1.el7 /nagiosxi-mrtg-5.8.4-1.el7.x86_64       1.0 M
 nagiosxi-nagioscore
               x86_64 5.8.4-1.el7 /nagiosxi-nagioscore-5.8.4-1.el7.x86_64  14 M
 nagiosxi-nagiosplugins
               x86_64 5.8.4-1.el7 /nagiosxi-nagiosplugins-5.8.4-1.el7.x86_64
                                                                           10 M
 nagiosxi-nagvis
               x86_64 5.8.4-1.el7 /nagiosxi-nagvis-5.8.4-1.el7.x86_64     5.7 M
 nagiosxi-ndoutils
               x86_64 5.8.4-1.el7 /nagiosxi-ndoutils-5.8.4-1.el7.x86_64   866 k
 nagiosxi-nrds x86_64 5.8.4-1.el7 /nagiosxi-nrds-5.8.4-1.el7.x86_64        56 M
 nagiosxi-nrpe x86_64 5.8.4-1.el7 /nagiosxi-nrpe-5.8.4-1.el7.x86_64       250 k
 nagiosxi-nsca x86_64 5.8.4-1.el7 /nagiosxi-nsca-5.8.4-1.el7.x86_64       133 k
 nagiosxi-nxti x86_64 5.8.4-1.el7 /nagiosxi-nxti-5.8.4-1.el7.x86_64       297 k
 nagiosxi-pnp  x86_64 5.8.4-1.el7 /nagiosxi-pnp-5.8.4-1.el7.x86_64         64 k
 nagiosxi-shellinabox
               x86_64 5.8.4-1.el7 /nagiosxi-shellinabox-5.8.4-1.el7.x86_64
                                                                          494 k
 nagiosxi-wkhtmltox
               x86_64 5.8.4-1.el7 /nagiosxi-wkhtmltox-5.8.4-1.el7.x86_64   72 M
 nagiosxi-wmic x86_64 5.8.4-1.el7 /nagiosxi-wmic-5.8.4-1.el7.x86_64        19 M
 nmap          x86_64 2:6.47-2    /nmap-6.47-2.x86_64                      18 M

Transaction Summary
================================================================================
Upgrade  14 Packages

Total size: 199 M
Downloading packages:
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Warning: RPMDB altered outside of yum.
  Updating   : 2:nmap-6.47-2.x86_64                                        1/28
  Updating   : nagiosxi-nxti-5.8.4-1.el7.x86_64                            2/28
  Updating   : nagiosxi-pnp-5.8.4-1.el7.x86_64                             3/28
  Updating   : nagiosxi-nsca-5.8.4-1.el7.x86_64                            4/28
  Updating   : nagiosxi-wmic-5.8.4-1.el7.x86_64                            5/28
  Updating   : nagiosxi-ndoutils-5.8.4-1.el7.x86_64                        6/28
  Updating   : nagiosxi-nrpe-5.8.4-1.el7.x86_64                            7/28
  Updating   : nagiosxi-wkhtmltox-5.8.4-1.el7.x86_64                       8/28
  Updating   : nagiosxi-nagiosplugins-5.8.4-1.el7.x86_64                   9/28
  Updating   : nagiosxi-nrds-5.8.4-1.el7.x86_64                           10/28
  Updating   : nagiosxi-shellinabox-5.8.4-1.el7.x86_64                    11/28
  Updating   : nagiosxi-mrtg-5.8.4-1.el7.x86_64                           12/28
  Updating   : nagiosxi-nagvis-5.8.4-1.el7.x86_64                         13/28
  Updating   : nagiosxi-nagioscore-5.8.4-1.el7.x86_64                     14/28
warning: /etc/httpd/conf.d/nagios.conf created as /etc/httpd/conf.d/nagios.conf.rpmnew
warning: /usr/local/nagios/etc/nagios.cfg created as /usr/local/nagios/etc/nagios.cfg.rpmnew
  Cleanup    : 2:nmap-6.47-1.x86_64                                       15/28
  Cleanup    : nagiosxi-nxti-5.7.3-2.el7.x86_64                           16/28
  Cleanup    : nagiosxi-pnp-5.7.3-2.el7.x86_64                            17/28
  Cleanup    : nagiosxi-nsca-5.7.3-2.el7.x86_64                           18/28
  Cleanup    : nagiosxi-wmic-5.7.3-2.el7.x86_64                           19/28
  Cleanup    : nagiosxi-ndoutils-5.7.3-2.el7.x86_64                       20/28
  Cleanup    : nagiosxi-nrpe-5.7.3-2.el7.x86_64                           21/28
  Cleanup    : nagiosxi-wkhtmltox-5.7.3-2.el7.x86_64                      22/28
  Cleanup    : nagiosxi-nagiosplugins-5.7.3-2.el7.x86_64                  23/28
  Cleanup    : nagiosxi-nrds-5.7.3-2.el7.x86_64                           24/28
  Cleanup    : nagiosxi-shellinabox-5.7.3-2.el7.x86_64                    25/28
  Cleanup    : nagiosxi-mrtg-5.7.3-2.el7.x86_64                           26/28
  Cleanup    : nagiosxi-nagvis-5.7.3-2.el7.x86_64                         27/28
  Cleanup    : nagiosxi-nagioscore-5.7.3-2.el7.x86_64                     28/28
  Verifying  : nagiosxi-nagioscore-5.8.4-1.el7.x86_64                      1/28
  Verifying  : nagiosxi-nagvis-5.8.4-1.el7.x86_64                          2/28
  Verifying  : nagiosxi-mrtg-5.8.4-1.el7.x86_64                            3/28
  Verifying  : nagiosxi-shellinabox-5.8.4-1.el7.x86_64                     4/28
  Verifying  : nagiosxi-nrds-5.8.4-1.el7.x86_64                            5/28
  Verifying  : nagiosxi-nagiosplugins-5.8.4-1.el7.x86_64                   6/28
  Verifying  : nagiosxi-wkhtmltox-5.8.4-1.el7.x86_64                       7/28
  Verifying  : nagiosxi-nrpe-5.8.4-1.el7.x86_64                            8/28
  Verifying  : nagiosxi-ndoutils-5.8.4-1.el7.x86_64                        9/28
  Verifying  : nagiosxi-wmic-5.8.4-1.el7.x86_64                           10/28
  Verifying  : nagiosxi-nsca-5.8.4-1.el7.x86_64                           11/28
  Verifying  : nagiosxi-pnp-5.8.4-1.el7.x86_64                            12/28
  Verifying  : nagiosxi-nxti-5.8.4-1.el7.x86_64                           13/28
  Verifying  : 2:nmap-6.47-2.x86_64                                       14/28
  Verifying  : nagiosxi-nrds-5.7.3-2.el7.x86_64                           15/28
  Verifying  : nagiosxi-wmic-5.7.3-2.el7.x86_64                           16/28
  Verifying  : nagiosxi-nagvis-5.7.3-2.el7.x86_64                         17/28
  Verifying  : nagiosxi-nsca-5.7.3-2.el7.x86_64                           18/28
  Verifying  : nagiosxi-pnp-5.7.3-2.el7.x86_64                            19/28
  Verifying  : nagiosxi-ndoutils-5.7.3-2.el7.x86_64                       20/28
  Verifying  : nagiosxi-shellinabox-5.7.3-2.el7.x86_64                    21/28
  Verifying  : nagiosxi-nagiosplugins-5.7.3-2.el7.x86_64                  22/28
  Verifying  : nagiosxi-wkhtmltox-5.7.3-2.el7.x86_64                      23/28
  Verifying  : nagiosxi-mrtg-5.7.3-2.el7.x86_64                           24/28
  Verifying  : nagiosxi-nrpe-5.7.3-2.el7.x86_64                           25/28
  Verifying  : nagiosxi-nagioscore-5.7.3-2.el7.x86_64                     26/28
  Verifying  : 2:nmap-6.47-1.x86_64                                       27/28
  Verifying  : nagiosxi-nxti-5.7.3-2.el7.x86_64                           28/28

Updated:
  nagiosxi-mrtg.x86_64 0:5.8.4-1.el7
  nagiosxi-nagioscore.x86_64 0:5.8.4-1.el7
  nagiosxi-nagiosplugins.x86_64 0:5.8.4-1.el7
  nagiosxi-nagvis.x86_64 0:5.8.4-1.el7
  nagiosxi-ndoutils.x86_64 0:5.8.4-1.el7
  nagiosxi-nrds.x86_64 0:5.8.4-1.el7
  nagiosxi-nrpe.x86_64 0:5.8.4-1.el7
  nagiosxi-nsca.x86_64 0:5.8.4-1.el7
  nagiosxi-nxti.x86_64 0:5.8.4-1.el7
  nagiosxi-pnp.x86_64 0:5.8.4-1.el7
  nagiosxi-shellinabox.x86_64 0:5.8.4-1.el7
  nagiosxi-wkhtmltox.x86_64 0:5.8.4-1.el7
  nagiosxi-wmic.x86_64 0:5.8.4-1.el7
  nmap.x86_64 2:6.47-2

Complete!
gsmith
Posts: 1253
Joined: Tue Mar 02, 2021 11:15 am

Re: NagiosXI offline upgrade script issues

Post by gsmith »

Hi,

I saw these in the log:
warning: /etc/httpd/conf.d/nagios.conf created as /etc/httpd/conf.d/nagios.conf.rpmnew
warning: /usr/local/nagios/etc/nagios.cfg created as /usr/local/nagios/etc/nagios.cfg.rpmnew

So let's try this.
1. If /etc/httpd/conf.d/nagios.conf exists then:

Code: Select all

mv /etc/httpd/conf.d/nagios.conf /etc/httpd/conf.d/nagios.conf.prev
2.

Code: Select all

 cp /etc/httpd/conf.d/nagios.conf.rpmnew /etc/httpd/conf.d/nagios.conf
(do this regardless of step 1)


3. If /usr/local/nagios/etc/nagios.cfg exists then:

Code: Select all

mv /usr/local/nagios/etc/nagios.cfg /usr/local/nagios/etc/nagios.cfg.prev
4.

Code: Select all

cp /usr/local/nagios/etc/nagios.cfg.rpmnew /usr/local/nagios/etc/nagios.cfg
(do this regardless of step 3)


5.

Code: Select all

systemctl restart httpd
    systemctl restart nagios
Then check the version number again. Let me know what happens.

Thanks
brandondash
Posts: 48
Joined: Fri Jan 27, 2017 9:02 am

Re: NagiosXI offline upgrade script issues

Post by brandondash »

All worked without issue. NagiosXI still thinks it's 5.7.3 though.

What script is supposed to be triggered to update the version number? I looked in the upgrade script and it's only RPM updates. Is the version upgrade functionality in /usr/local/nagiosxi/scripts/upgrade_to_latest.sh? I'm trying to isolate the source of the problem.
gsmith
Posts: 1253
Joined: Tue Mar 02, 2021 11:15 am

Re: NagiosXI offline upgrade script issues

Post by gsmith »

HI

One of the ways to perform the upgrade is to:

cd /tmp
rm -rf nagiosxi xi*.tar.gz
wget http://assets.nagios.com/downloads/nagi ... est.tar.gz
tar xzf xi-latest.tar.gz
cd nagiosxi
./upgrade
brandondash
Posts: 48
Joined: Fri Jan 27, 2017 9:02 am

Re: NagiosXI offline upgrade script issues

Post by brandondash »

gsmith wrote:HI

One of the ways to perform the upgrade is to:

cd /tmp
rm -rf nagiosxi xi*.tar.gz
wget http://assets.nagios.com/downloads/nagi ... est.tar.gz
tar xzf xi-latest.tar.gz
cd nagiosxi
./upgrade
Yes, this is what I have done (although I downloaded it myself and cannot use the /tmp directory). What I mean is... the upgrade script in that package only updates RPMs. Obviously there is some post processing that happens somewhere, no? I assume there is a listener that triggers additional scripts if it sees the underlying libraries have changed? I could be totally wrong that's why I'm reaching out for assistance.
gsmith
Posts: 1253
Joined: Tue Mar 02, 2021 11:15 am

Re: NagiosXI offline upgrade script issues

Post by gsmith »

Hey,

Yeah there are a ton of scripts that get run, take a look at this directory listing:

Code: Select all

[root@localhost nagiosxi]# pwd
/tmp/nagiosxi
[root@localhost nagiosxi]# ls
0-repos            CHANGELOG.txt          install-html                             sourceguardian
11-sourceguardian  components.txt         install-pnptemplates                     subcomponents
13-phpini          dashlets.txt           install-sourceguardian-extension.sh      susemods
1-prereqs          D-chkconfigalldaemons  install-sudoers                          tools
2-usersgroups      debianmods             install-templates                        ubuntumods
3-dbservers        E-importnagiosql       licenses                                 uninstall-crontab-nagios
4-services         F-startdaemons         nagiosxi                                 uninstall-crontab-root
5-sudoers          fullinstall            nagiosxi-deps-5.8.5-1.noarch.rpm         upgrade
6-firewall         functions.sh           nagiosxi-deps-el7-5.8.5-1.noarch.rpm     verify-prereqs.php
8-selinux          get-os-info            nagiosxi-deps-el8-5.8.5-1.noarch.rpm     wizards.txt
9-dbbackups        get-version            nagiosxi-deps-suse11-5.8.5-1.noarch.rpm  xi-sys.cfg
A0-mrtg            init-auditlog          nagiosxi-deps-suse12-5.8.5-1.noarch.rpm  xivar
A-subcomponents    init-mysql             packages                                 Z-webroot
B-installxi        init.sh                rpminstall
C-cronjobs         init-xidb              rpmupgrade
[root@localhost nagiosxi]#
I know you were trying to find the script that sets the version, but I am leery of that since we don't know what other scripts
had problems or didn't even run.

Is this your Production server? If so did you do a dry-run on a Test server?

If this is a Test server can you get a full system backup restored and try again?

Let me know your situation.

Thanks
brandondash
Posts: 48
Joined: Fri Jan 27, 2017 9:02 am

Re: NagiosXI offline upgrade script issues

Post by brandondash »

We're in my test lab at the moment and I already have a snapshot I've been using to revert in between tries. Let's break stuff!
gsmith
Posts: 1253
Joined: Tue Mar 02, 2021 11:15 am

Re: NagiosXI offline upgrade script issues

Post by gsmith »

Sweet! So glad it was the Test system 8-)

First let's check something:
The configuration files in /usr/local/nagios/etc/ can have errors preventing the upgrade or the upgrade can complete successfully and cause problems afterwards. Sometimes the error message will explicitly tell you which files or directories to examine but if not or the upgrade completed, the configuration can be checked and detailed output returned with:

Code: Select all

/usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg
Secondly, you mention you don't download/run the upgrade from /tmp. Where do you run it from
and what user are you running it as?

Thanks
Locked