error while upgrading from 5.2.7 to 5.2.9

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Frédéric GRANAT
Posts: 445
Joined: Mon Nov 19, 2012 11:36 am

Re: error while upgrading from 5.2.7 to 5.2.9

Post by Frédéric GRANAT »

Hi,
As requested, I changed the rpmforge.repo to

Code: Select all

#baseurl = http://apt.sw.be/redhat/el5/en/$basearch/rpmforge
baseurl = http://mirror.nl.leaseweb.net/dag/redhat/el5/en/i386/rpmforge
Here's the ouptut :

Code: Select all

[root@nagiosxi ~]# cd /etc
[root@nagiosxi etc]# cd yum.repos.d/
[root@nagiosxi yum.repos.d]# ls
CentOS-Base.repo       epel.repo                mirrors-rpmforge-testing
CentOS-Debuginfo.repo  epel-testing.repo        nagios-5.repo
CentOS-Media.repo      jpackage50.repo          reconfig.txt
CentOS-Vault.repo      mirrors-rpmforge         remi.repo
dag.repo               mirrors-rpmforge-extras  rpmforge.repo
[root@nagiosxi yum.repos.d]# vi rpmforge.repo
[root@nagiosxi yum.repos.d]# cd /tmp/nagiosxi
[root@nagiosxi nagiosxi]# ./fullinstall
========================
Nagios XI Full Installer
========================

This script will do a complete install of Nagios XI by executing all necessary
sub-scripts.

IMPORTANT: This script should only be used on a 'clean' install of CentOS or
RedHat. Do NOT use this on a system that has been tasked with other purposes
or has an existing install of Nagios Core. To create such a clean install
you should have selected ONLY the 'Base' package in the OS installer.
Do you want to continue? [Y/n] Y
Proceeding with installation...
Checking MySQL credentials...
Stored MySQL password validated.
Running './0-repos'...
Configuring Repos...
Updating system...
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base: centos.crazyfrogs.org
 * epel: fr2.rpmfind.net
 * extras: miroir.univ-paris13.fr
 * remi: fr2.rpmfind.net
 * rpmforge: mirror.nl.leaseweb.net
 * updates: centos.mirror.fr.planethoster.net
http://apt.sw.be/redhat/el5/en/i386/dag/repodata/repomd.xml: [Errno 14] HTTP Error 404: Not Found
Trying other mirror.
Error: Cannot retrieve repository metadata (repomd.xml) for repository: dag. Please verify its path and try again
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: './0-repos'
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: error while upgrading from 5.2.7 to 5.2.9

Post by lmiltchev »

Why did you run "./fullinstall"? I thought you were upgrading an old (5.2.7) XI instance to 5.2.9...

You could actually try removing rpmforge repo from your repos completely, then upgrade to the latest XI (5.3.0), which was released today.

Code: Select all

yum clean all
yum update
cd /tmp
rm -rf nagiosxi*
wget https://assets.nagios.com/downloads/nagiosxi/5/xi-5.3.0.tar.gz
tar zxvf xi-5.3.0.tar.gz
cd nagiosxi
./upgrade
Be sure to check out our Knowledgebase for helpful articles and solutions!
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: error while upgrading from 5.2.7 to 5.2.9

Post by tgriep »

There must be another yum config file with that server in it that is causing the issue.
Can you login as root to the XI server, run the following and post it back here?

Code: Select all

grep apt.sw.be /etc/yum.repos.d/*
Be sure to check out our Knowledgebase for helpful articles and solutions!
Frédéric GRANAT
Posts: 445
Joined: Mon Nov 19, 2012 11:36 am

Re: error while upgrading from 5.2.7 to 5.2.9

Post by Frédéric GRANAT »

Hi
Output of upgrade :

Code: Select all

[root@nagiosxi tmp]# cd nagiosxi
[root@nagiosxi nagiosxi]# ./upgrade
Archive:  sourceguardian/ixed4.lin.x86-32.zip
  inflating: /usr/lib/php/modules/ixed.5.4.lin
Sourceguardian extension found for PHP version 5.4
Sourceguardian extension already in php.ini
Stopping httpd:                                            [  OK  ]
Starting httpd: httpd: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1 for ServerName
                                                           [  OK  ]
Checking required prereqs...
Please wait...

OLD VERSION: 518
Loaded plugins: fastestmirror
Setting up Remove Process
Resolving Dependencies
--> Running transaction check
---> Package rpmforge-release.i386 0:0.5.2-2.el5.rf set to be erased
--> Finished Dependency Resolution

Dependencies Resolved

================================================================================
 Package                Arch       Version                Repository       Size
================================================================================
Removing:
 rpmforge-release       i386       0.5.2-2.el5.rf         installed        13 k

Transaction Summary
================================================================================
Remove        1 Package(s)
Reinstall     0 Package(s)
Downgrade     0 Package(s)

Downloading Packages:
Running rpm_check_debug
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
  Erasing        : rpmforge-release                                         1/1
warning: /etc/yum.repos.d/rpmforge.repo saved as /etc/yum.repos.d/rpmforge.repo.rpmsave

Removed:
  rpmforge-release.i386 0:0.5.2-2.el5.rf

Complete!
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base: centos.crazyfrogs.org
 * epel: mirrors.ircam.fr
 * extras: centos.crazyfrogs.org
 * remi: fr2.rpmfind.net
 * updates: centos.mirror.ate.info
http://apt.sw.be/redhat/el5/en/i386/dag/repodata/repomd.xml: [Errno 14] HTTP Error 404: Not Found
Trying other mirror.
Error: Cannot retrieve repository metadata (repomd.xml) for repository: dag. Please verify its path and try again
[root@nagiosxi nagiosxi]#
[root@nagiosxi nagiosxi]#
Output of :

Code: Select all

[root@nagiosxi nagiosxi]# grep apt.sw.be /etc/yum.repos.d/*
/etc/yum.repos.d/dag.repo:baseurl=http://apt.sw.be/redhat/el$releasever/en/$basearch/dag
/etc/yum.repos.d/rpmforge.repo.rpmsave:#baseurl = http://apt.sw.be/redhat/el5/en/$basearch/rpmforge
/etc/yum.repos.d/rpmforge.repo.rpmsave:#mirrorlist = http://apt.sw.be/redhat/el5/en/mirrors-rpmforge
/etc/yum.repos.d/rpmforge.repo.rpmsave:baseurl = http://apt.sw.be/redhat/el5/en/$basearch/extras
/etc/yum.repos.d/rpmforge.repo.rpmsave:mirrorlist = http://apt.sw.be/redhat/el5/en/mirrors-rpmforge-extras
/etc/yum.repos.d/rpmforge.repo.rpmsave:baseurl = http://apt.sw.be/redhat/el5/en/$basearch/testing
/etc/yum.repos.d/rpmforge.repo.rpmsave:mirrorlist = http://apt.sw.be/redhat/el5/en/mirrors-rpmforge-testing
[root@nagiosxi nagiosxi]#
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: error while upgrading from 5.2.7 to 5.2.9

Post by tgriep »

Lets disable that repo as that update server is no longer available and it is not needed anymore.
Edit this file

Code: Select all

/etc/yum.repos.d/dag.repo
And anywhere you see the following enable line

Code: Select all

enabled = 1
change it to

Code: Select all

enabled = 0
Save the file and try the upgrade again.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Frédéric GRANAT
Posts: 445
Joined: Mon Nov 19, 2012 11:36 am

Re: error while upgrading from 5.2.7 to 5.2.9

Post by Frédéric GRANAT »

Hi,
I Launched the upgrade and it's blocked since yesterday.
Please see the current log below :

Code: Select all


[root@nagiosxi nagiosxi]# ./upgrade
Archive:  sourceguardian/ixed4.lin.x86-32.zip
  inflating: /usr/lib/php/modules/ixed.5.4.lin
Sourceguardian extension found for PHP version 5.4
Sourceguardian extension already in php.ini
Stopping httpd:                                            [  OK  ]
Starting httpd: httpd: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1 for ServerName
                                                           [  OK  ]
Checking required prereqs...
Please wait...

OLD VERSION: 518
Loaded plugins: fastestmirror
Setting up Remove Process
No Match for argument: rpmforge-release
Loading mirror speeds from cached hostfile
 * base: centos.mirror.ate.info
 * epel: mirrors.ircam.fr
 * extras: centos.crazyfrogs.org
 * remi: fr2.rpmfind.net
 * updates: mirror1.evolution-host.com
No Packages marked for removal
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base: centos.mirror.ate.info
 * epel: mirrors.ircam.fr
 * extras: centos.mirror.fr.planethoster.net
 * remi: fr2.rpmfind.net
 * updates: centos.mirror.fr.planethoster.net
Setting up Install Process
Package automake-1.9.6-3.el5.noarch already installed and latest version
Package autoconf-2.59-12.noarch already installed and latest version
Package subversion-1.6.11-12.el5_10.i386 already installed and latest version
Resolving Dependencies
--> Running transaction check
---> Package nmap.i386 2:6.47-1 set to be updated
---> Package php-mbstring.i386 0:5.4.45-12.el5.remi set to be updated
--> Processing Dependency: php-common = 5.4.45-12.el5.remi for package: php-mbstring
--> Running transaction check
--> Processing Dependency: php-common = 5.4.45-7.el5.remi for package: php-pdo
--> Processing Dependency: php-common = 5.4.45-7.el5.remi for package: php-tidy
--> Processing Dependency: php-common = 5.4.45-7.el5.remi for package: php-gd
--> Processing Dependency: php-common = 5.4.45-7.el5.remi for package: php-snmp
--> Processing Dependency: php-common = 5.4.45-7.el5.remi for package: php-mcrypt
--> Processing Dependency: php-common = 5.4.45-7.el5.remi for package: php
--> Processing Dependency: php-common = 5.4.45-7.el5.remi for package: php-ldap
--> Processing Dependency: php-common = 5.4.45-7.el5.remi for package: php-cli
--> Processing Dependency: php-common = 5.4.45-7.el5.remi for package: php-xml
---> Package php-common.i386 0:5.4.45-12.el5.remi set to be updated
--> Running transaction check
---> Package php.i386 0:5.4.45-12.el5.remi set to be updated
--> Processing Dependency: php-cli = 5.4.45-7.el5.remi for package: php-devel
---> Package php-cli.i386 0:5.4.45-12.el5.remi set to be updated
---> Package php-gd.i386 0:5.4.45-12.el5.remi set to be updated
---> Package php-ldap.i386 0:5.4.45-12.el5.remi set to be updated
---> Package php-mcrypt.i386 0:5.4.45-12.el5.remi set to be updated
--> Processing Dependency: php-pdo = 5.4.45-7.el5.remi for package: php-mssql
--> Processing Dependency: php-pdo = 5.4.45-7.el5.remi for package: php-mysql
--> Processing Dependency: php-pdo = 5.4.45-7.el5.remi for package: php-odbc
--> Processing Dependency: php-pdo = 5.4.45-7.el5.remi for package: php-pgsql
---> Package php-pdo.i386 0:5.4.45-12.el5.remi set to be updated
---> Package php-snmp.i386 0:5.4.45-12.el5.remi set to be updated
---> Package php-tidy.i386 0:5.4.45-12.el5.remi set to be updated
---> Package php-xml.i386 0:5.4.45-12.el5.remi set to be updated
--> Running transaction check
---> Package php-devel.i386 0:5.4.45-12.el5.remi set to be updated
---> Package php-mssql.i386 0:5.4.45-12.el5.remi set to be updated
---> Package php-mysql.i386 0:5.4.45-12.el5.remi set to be updated
---> Package php-odbc.i386 0:5.4.45-12.el5.remi set to be updated
---> Package php-pgsql.i386 0:5.4.45-12.el5.remi set to be updated
--> Finished Dependency Resolution

Dependencies Resolved

================================================================================
 Package           Arch      Version                   Repository          Size
================================================================================
Updating:
 nmap              i386      2:6.47-1                  nagiosxi-deps      5.0 M
 php-mbstring      i386      5.4.45-12.el5.remi        remi               1.2 M
Updating for dependencies:
 php               i386      5.4.45-12.el5.remi        remi               3.2 M
 php-cli           i386      5.4.45-12.el5.remi        remi               4.7 M
 php-common        i386      5.4.45-12.el5.remi        remi               1.1 M
 php-devel         i386      5.4.45-12.el5.remi        remi               1.5 M
 php-gd            i386      5.4.45-12.el5.remi        remi               227 k
 php-ldap          i386      5.4.45-12.el5.remi        remi                80 k
 php-mcrypt        i386      5.4.45-12.el5.remi        remi                66 k
 php-mssql         i386      5.4.45-12.el5.remi        remi               116 k
 php-mysql         i386      5.4.45-12.el5.remi        remi               182 k
 php-odbc          i386      5.4.45-12.el5.remi        remi               104 k
 php-pdo           i386      5.4.45-12.el5.remi        remi               137 k
 php-pgsql         i386      5.4.45-12.el5.remi        remi               155 k
 php-snmp          i386      5.4.45-12.el5.remi        remi                77 k
 php-tidy          i386      5.4.45-12.el5.remi        remi                73 k
 php-xml           i386      5.4.45-12.el5.remi        remi               235 k

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

Total download size: 18 M
Downloading Packages:
--------------------------------------------------------------------------------
Total                                           982 kB/s |  18 MB     00:18
Running rpm_check_debug
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
  Updating       : php-common                                              1/34
  Updating       : php-pdo                                                 2/34
  Updating       : php-cli                                                 3/34
  Updating       : php-devel                                               4/34
  Updating       : php-xml                                                 5/34
  Updating       : php-ldap                                                6/34
  Updating       : php-mysql                                               7/34
  Updating       : nmap                                                    8/34
  Updating       : php-gd                                                  9/34
  Updating       : php-tidy                                               10/34
  Updating       : php-odbc                                               11/34
  Updating       : php-snmp                                               12/34
  Updating       : php                                                    13/34
  Updating       : php-pgsql                                              14/34
  Updating       : php-mbstring                                           15/34
  Updating       : php-mcrypt                                             16/34
  Updating       : php-mssql                                              17/34
  Cleanup        : php-common                                             18/34
  Cleanup        : php-devel                                              19/34
  Cleanup        : php-cli                                                20/34
  Cleanup        : php-xml                                                21/34
  Cleanup        : php-ldap                                               22/34
  Cleanup        : php-mysql                                              23/34
  Cleanup        : nmap                                                   24/34
  Cleanup        : php-gd                                                 25/34
  Cleanup        : php-tidy                                               26/34
  Cleanup        : php-odbc                                               27/34
  Cleanup        : php-snmp                                               28/34
  Cleanup        : php                                                    29/34
  Cleanup        : php-pgsql                                              30/34
  Cleanup        : php-mbstring                                           31/34
  Cleanup        : php-mcrypt                                             32/34
  Cleanup        : php-mssql                                              33/34
  Cleanup        : php-pdo                                                34/34==========================================================================

 WARNING : PHP 5.4 have reached its "End of Life" in September 2015.
 Even, if this package includes some of the important security fix,
 backported from 5.5 or 5.6,
 The UPGRADE to a maintained version is very strongly RECOMMENDED.

 WARNING : These php-* RPMs are not official Fedora / Red Hat build and
 overrides the official ones. Don't file bugs on Fedora Project nor Red Hat.

 Use dedicated forum at http://forum.remirepo.net/
==========================================================================


Updated:
  nmap.i386 2:6.47-1           php-mbstring.i386 0:5.4.45-12.el5.remi

Dependency Updated:
  php.i386 0:5.4.45-12.el5.remi           php-cli.i386 0:5.4.45-12.el5.remi
  php-common.i386 0:5.4.45-12.el5.remi    php-devel.i386 0:5.4.45-12.el5.remi
  php-gd.i386 0:5.4.45-12.el5.remi        php-ldap.i386 0:5.4.45-12.el5.remi
  php-mcrypt.i386 0:5.4.45-12.el5.remi    php-mssql.i386 0:5.4.45-12.el5.remi
  php-mysql.i386 0:5.4.45-12.el5.remi     php-odbc.i386 0:5.4.45-12.el5.remi
  php-pdo.i386 0:5.4.45-12.el5.remi       php-pgsql.i386 0:5.4.45-12.el5.remi
  php-snmp.i386 0:5.4.45-12.el5.remi      php-tidy.i386 0:5.4.45-12.el5.remi
  php-xml.i386 0:5.4.45-12.el5.remi

Complete!
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base: centos.mirror.ate.info
 * epel: mirrors.ircam.fr
 * extras: centos.crazyfrogs.org
 * remi: fr2.rpmfind.net
 * updates: centos.mirror.fr.planethoster.net
Setting up Install Process
Package 4:perl-5.8.8-43.el5_11.i386 already installed and latest version
Package matching perl-Class-Accessor-0.31-1.el5.noarch already installed. Checking for update.
Package matching perl-Params-Validate-0.88-3.el5.i386 already installed. Checking for update.
Package matching perl-Config-Tiny-2.10-1.el5.noarch already installed. Checking for update.
Package perl-Math-Calc-Units-1.07-6.el5.noarch already installed and latest version
Package perl-Number-Format-1.73-1.el5.noarch already installed and latest version
Nothing to do
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base: centos.mirror.ate.info
 * epel: mirrors.ircam.fr
 * extras: centos.mirror.fr.planethoster.net
 * remi: fr2.rpmfind.net
 * updates: centos.mirror.fr.planethoster.net
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package php-pecl-ssh2.i386 0:0.13-1.el5.remi.5.4 set to be updated
--> Finished Dependency Resolution

Dependencies Resolved

================================================================================
 Package              Arch        Version                     Repository   Size
================================================================================
Updating:
 php-pecl-ssh2        i386        0.13-1.el5.remi.5.4         remi         63 k

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

Total download size: 63 k
Downloading Packages:
Running rpm_check_debug
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
  Updating       : php-pecl-ssh2                                            1/2
  Cleanup        : php-pecl-ssh2                                            2/2

Updated:
  php-pecl-ssh2.i386 0:0.13-1.el5.remi.5.4

Complete!
Upgrading Extra Plugins...
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking how to create a pax tar archive... gnutar
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking whether make sets $(MAKE)... (cached) yes
variable with_statefiles_dir is /var/tmp/check_mysql_health
variable with_mymodules_dir is /usr/local/nagios/libexec
variable with_mymodules_dyn_dir is /usr/local/nagios/libexec
checking for sh... /bin/sh
checking for perl... /usr/local/bin/perl
checking for gzip... /bin/gzip
checking for gawk... /bin/gawk
checking for grep... /bin/grep
checking for echo... /bin/echo
checking for sed... /bin/sed
checking for cat... /bin/cat
configure: creating ./config.status
config.status: creating Makefile
config.status: creating plugins-scripts/Makefile
config.status: creating plugins-scripts/subst
config.status: creating t/Makefile
                       --with-perl: /usr/local/bin/perl
             --with-statefiles-dir: /var/tmp/check_mysql_health
                --with-nagios-user: nagios
               --with-nagios-group: nagios
              --with-mymodules-dir: /usr/local/nagios/libexec
          --with-mymodules-dyn-dir: /usr/local/nagios/libexec
Making clean in t
make[1]: Entering directory `/tmp/nagiosxi/subcomponents/extraplugins/check_mysql_health-2.1.8.2/t'
make[1]: Nothing to be done for `clean'.
make[1]: Leaving directory `/tmp/nagiosxi/subcomponents/extraplugins/check_mysql_health-2.1.8.2/t'
Making clean in plugins-scripts
make[1]: Entering directory `/tmp/nagiosxi/subcomponents/extraplugins/check_mysql_health-2.1.8.2/plugins-scripts'
test -z "check_mysql_health" || rm -f check_mysql_health
make[1]: Leaving directory `/tmp/nagiosxi/subcomponents/extraplugins/check_mysql_health-2.1.8.2/plugins-scripts'
Making clean in .
make[1]: Entering directory `/tmp/nagiosxi/subcomponents/extraplugins/check_mysql_health-2.1.8.2'
make[1]: Nothing to be done for `clean-am'.
make[1]: Leaving directory `/tmp/nagiosxi/subcomponents/extraplugins/check_mysql_health-2.1.8.2'
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking how to create a pax tar archive... gnutar
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking whether make sets $(MAKE)... (cached) yes
variable with_statefiles_dir is /var/tmp/check_mysql_health
variable with_mymodules_dir is /usr/local/nagios/libexec
variable with_mymodules_dyn_dir is /usr/local/nagios/libexec
checking for sh... /bin/sh
checking for perl... /usr/local/bin/perl
checking for gzip... /bin/gzip
checking for gawk... /bin/gawk
checking for grep... /bin/grep
checking for echo... /bin/echo
checking for sed... /bin/sed
checking for cat... /bin/cat
configure: creating ./config.status
config.status: creating Makefile
config.status: creating plugins-scripts/Makefile
config.status: creating plugins-scripts/subst
config.status: creating t/Makefile
                       --with-perl: /usr/local/bin/perl
             --with-statefiles-dir: /var/tmp/check_mysql_health
                --with-nagios-user: nagios
               --with-nagios-group: nagios
              --with-mymodules-dir: /usr/local/nagios/libexec
          --with-mymodules-dyn-dir: /usr/local/nagios/libexec
Making all in plugins-scripts
make[1]: Entering directory `/tmp/nagiosxi/subcomponents/extraplugins/check_mysql_health-2.1.8.2/plugins-scripts'
/bin/echo "#! #PERL# -w" | /bin/gawk -f ./subst > check_mysql_health
/bin/echo "# nagios: -epn" >> check_mysql_health
/bin/echo >> check_mysql_health
/bin/echo "my %ERRORS=( OK => 0, WARNING => 1, CRITICAL => 2, UNKNOWN => 3 );" >> check_mysql_health
/bin/echo "my %ERRORCODES=( 0 => 'OK', 1 => 'WARNING', 2 => 'CRITICAL', 3 => 'UNKNOWN' );" >> check_mysql_health
for m in Nagios/DBD/MySQL/Server/Instance/Innodb.pm Nagios/DBD/MySQL/Server/Instance/Myisam.pm Nagios/DBD/MySQL/Server/Instance/Replication.pm Nagios/DBD/MySQL/Server/Instance.pm Nagios/DBD/MySQL/Server.pm Nagios/DBD/MySQL/Cluster.pm Nagios/Extraopts.pm; do \
                /bin/sed -e 's/^1;//g' < $m | /bin/gawk -f ./subst | /bin/grep -v "my %ERROR" >> check_mysql_health; \
        done
if [ -d "/usr/local/nagios/libexec" ]; then \
                for m in /usr/local/nagios/libexec/CheckMySQLHealthExt*.pm; do \
                        if [ -f $m ]; then \
                                /bin/echo found $m; \
                                /bin/sed -e 's/^1;//g' < $m | /bin/gawk -f ./subst | /bin/grep -v "my %ERROR" >> check_mysql_health; \
                        fi \
                done \
        fi
/bin/cat check_mysql_health.pl | /bin/grep -v "^use Nagios" | /bin/grep -v "^my %ERROR" | /bin/gawk -f ./subst >> check_mysql_health
chmod +x check_mysql_health
make[1]: Leaving directory `/tmp/nagiosxi/subcomponents/extraplugins/check_mysql_health-2.1.8.2/plugins-scripts'
Making all in t
make[1]: Entering directory `/tmp/nagiosxi/subcomponents/extraplugins/check_mysql_health-2.1.8.2/t'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/tmp/nagiosxi/subcomponents/extraplugins/check_mysql_health-2.1.8.2/t'
make[1]: Entering directory `/tmp/nagiosxi/subcomponents/extraplugins/check_mysql_health-2.1.8.2'
make[1]: Nothing to be done for `all-am'.
make[1]: Leaving directory `/tmp/nagiosxi/subcomponents/extraplugins/check_mysql_health-2.1.8.2'
Checking if your kit is complete...
Looks good
WARNING: ABSTRACT contains control character(s), they will be removed
Generating a Unix-style Makefile
Writing Makefile for Nagios::Monitoring::Plugin
Writing MYMETA.yml and MYMETA.json
cp lib/Nagios/Monitoring/Plugin/Performance.pm blib/lib/Nagios/Monitoring/Plugin/Performance.pm
cp lib/Nagios/Monitoring/Plugin/Range.pm blib/lib/Nagios/Monitoring/Plugin/Range.pm
cp lib/Nagios/Monitoring/Plugin/Threshold.pm blib/lib/Nagios/Monitoring/Plugin/Threshold.pm
cp lib/Nagios/Monitoring/Plugin.pm blib/lib/Nagios/Monitoring/Plugin.pm
cp lib/Nagios/Monitoring/Plugin/Getopt.pm blib/lib/Nagios/Monitoring/Plugin/Getopt.pm
cp lib/Nagios/Monitoring/Plugin/Functions.pm blib/lib/Nagios/Monitoring/Plugin/Functions.pm
cp lib/Nagios/Monitoring/Plugin/Config.pm blib/lib/Nagios/Monitoring/Plugin/Config.pm
cp lib/Nagios/Monitoring/Plugin/ExitResult.pm blib/lib/Nagios/Monitoring/Plugin/ExitResult.pm
Manifying 8 pod documents
PERL_DL_NONLAZY=1 "/usr/bin/perl" "-MExtUtils::Command::MM" "-MTest::Harness" "-e" "undef *Test::Harness::Switches; test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
t/check_stuff................................ok
t/Nagios-Monitoring-Plugin-01................ok
t/Nagios-Monitoring-Plugin-02................ok
t/Nagios-Monitoring-Plugin-03................ok
t/Nagios-Monitoring-Plugin-04................ok
t/Nagios-Monitoring-Plugin-Functions-01......ok
t/Nagios-Monitoring-Plugin-Functions-02......ok
t/Nagios-Monitoring-Plugin-Functions-03......ok
t/Nagios-Monitoring-Plugin-Getopt-01.........ok
t/Nagios-Monitoring-Plugin-Getopt-02.........ok
t/Nagios-Monitoring-Plugin-Getopt-03.........ok
t/Nagios-Monitoring-Plugin-Getopt-04.........ok
t/Nagios-Monitoring-Plugin-Performance-02....ok
t/Nagios-Monitoring-Plugin-Performance.......ok
t/Nagios-Monitoring-Plugin-Range.............ok
t/Nagios-Monitoring-Plugin-Threshold.........ok
All tests successful.
Files=16, Tests=975,  8 wallclock secs ( 2.22 cusr +  0.22 csys =  2.44 CPU)
Manifying 8 pod documents
Appending installation info to /usr/lib/perl5/5.8.8/i386-linux-thread-multi/perllocal.pod
Extra Plugins upgraded OK
Are you sure you want to continue? [y/N] ===================
XI 5.3.0 Updates
===================
NOTICE: This upgrade script will update ALL XI components, wizards, and
dashlets
to the latest available versions. Before running this upgrade the currently
installed versions will be backed up to the /tmp directory.

Frédéric GRANAT
Posts: 445
Joined: Mon Nov 19, 2012 11:36 am

Re: error while upgrading from 5.2.7 to 5.2.9

Post by Frédéric GRANAT »

I add :
upgrade.sh just terminated, after the last step given in my previous post.
I logged into NagiosXI and the version displayed is stil 5.2.7 (whereas upgrade launched from 5.3).
So it seems the upgrade failed.

Frederic
jomann
Development Lead
Posts: 611
Joined: Mon Apr 22, 2013 10:06 am
Location: Nagios Enterprises

Re: error while upgrading from 5.2.7 to 5.2.9

Post by jomann »

Can you copy in the full install.log from the location where you tried to upgrade nagiosxi from? Typically we tell people to upgrade from /tmp so it'd be in /tmp/nagiosxi

The above output shows you hitting the part of the upgrade script that asks if you'd like to overwrite your components - which must be done in order to upgrade to 5.3.0 - but it does not show any errors after that message.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Frédéric GRANAT
Posts: 445
Joined: Mon Nov 19, 2012 11:36 am

Re: error while upgrading from 5.2.7 to 5.2.9

Post by Frédéric GRANAT »

Hi ,
Finally I ran the ./upgrade from /tmp/nagiosxi one more time and it seems it worked (5.3.0 is displayed at the left bottom side of the GUI).
So you can close the post.

Thanks,

Frederic
Locked