Page 1 of 1

Upgrade from Nagios XI 2014R1.5 to Latest Version Fails

Posted: Fri Apr 08, 2016 10:02 am
by CarlWedu
[root@nagiosxi nagiosxi-64]# ./upgrade
-bash: ./upgrade: No such file or directory
[root@nagiosxi nagiosxi-64]# ls -l
total 10485796
-rw-r--r-- 1 root root 10737418752 Apr 6 16:12 nagiosxi-64.vhd
-rw-r--r-- 1 root root 12556 Dec 19 2012 nagiosxi-64.vmc



This document that is provided for help with the upgrade seems outdated: https://assets.nagios.com/downloads/nag ... ctions.pdf


Thanks!

Re: Upgrade from Nagios XI 2014R1.5 to Latest Version Fails

Posted: Fri Apr 08, 2016 10:47 am
by rkennedy
It looks like you downloaded the vhd, and not the source file. Try these commands -

Code: Select all

cd /tmp
wget http://assets.nagios.com/downloads/nagiosxi/xi-latest.tar.gz
tar xzf xi-latest.tar.gz
cd /tmp/nagiosxi
./upgrade
Let us know how that goes!

Re: Upgrade from Nagios XI 2014R1.5 to Latest Version Fails

Posted: Fri Apr 08, 2016 10:48 am
by lmiltchev
Are you sure you followed all of the steps, outlined in the document? I am not able to recreate the issue. I ran:

Code: Select all

cd /tmp
rm -rf nagiosxi xi*.tar.gz
wget http://assets.nagios.com/downloads/nagiosxi/xi-latest.tar.gz
tar xzf xi-latest.tar.gz
cd /tmp/nagiosxi
The upgrade script is present in the "/tmp/nagiosxi" directory...

Code: Select all

[root@localhost nagiosxi]# pwd
/tmp/nagiosxi
[root@localhost nagiosxi]# ls
0-repos            C-cronjobs             init.sh                                  sourceguardian
10-phplimits       CHANGELOG.txt          init-xidb                                subcomponents
11-sourceguardian  components.txt         install-2012-prereqs                     susemods
12-mrtg            cpan                   install-html                             tools
13-cacti           dashlets.txt           install-nagiosxi-init                    ubuntumods
14-timezone        D-chkconfigalldaemons  install-pnptemplates                     uninstall-crontab-nagios
1-prereqs          debianmods             install-sourceguardian-extension.sh      uninstall-crontab-root
2-usersgroups      E-importnagiosql       install-sudoers                          upgrade
3-dbservers        fedoramods             install-templates                        verify-prereqs.php
4-services         fix-nagiosadmin        licenses                                 vmsetup
5-sudoers          F-startdaemons         nagiosxi                                 wizards.txt
6-firewall         fullinstall            nagiosxi-deps-5.2.7-1.noarch.rpm         xi-sys.cfg
7-sendmail         functions.sh           nagiosxi-deps-el7-5.2.7-1.noarch.rpm     xivar
8-selinux          get-os-info            nagiosxi-deps-suse11-5.2.7-1.noarch.rpm  Z-webroot
9-dbbackups        get-version            packages
A-subcomponents    init-auditlog          rpminstall
B-installxi        init-mysql             rpmupgrade
Can you try running the same commands one more time?

Re: Upgrade from Nagios XI 2014R1.5 to Latest Version Fails

Posted: Fri Apr 08, 2016 10:55 am
by CarlWedu
rkennedy wrote:It looks like you downloaded the vhd, and not the source file. Try these commands -

Code: Select all

cd /tmp
wget http://assets.nagios.com/downloads/nagiosxi/xi-latest.tar.gz
tar xzf xi-latest.tar.gz
cd /tmp/nagiosxi
./upgrade
Let us know how that goes!

That explains why I got a zip file instead of a tar file. Seems to be proceeding normally now.

Thank you!

Re: Upgrade from Nagios XI 2014R1.5 to Latest Version Fails

Posted: Fri Apr 08, 2016 12:17 pm
by lmiltchev
I am glad your issue has been resolved!