We tried to upgrade Nagios XI from version 5.2.2 to the latest but failed with the following:
./upgrade: line 756: /usr/local/nagiosxi/tools/install_dashlet.php: Permission denied
Background
1. We had Nagios XI 5.2.2 on CentOS 5
2. Migrated CentOS 5 (32 bit) to CentOS 7 (64 bit)
3. Migration was successful with Nagios XI 5.2.2 on Cent 0S 7
4. First tried upgrade from Web but failed
5. Now manually from command line followign https://assets.nagios.com/downloads/nag ... nstall.pdf
6. Upgrade failed as well.
Detailed log as below:
--------------------------
Code: Select all
root@newnagiosxi tmp]# rm -rf nagiosxi xi*.tar.gz
[root@newnagiosxi tmp]# wget https://assets.nagios.com/downloads/nagiosxi/xi-latest.tar.gz
--2017-11-11 16:50:49-- https://assets.nagios.com/downloads/nagiosxi/xi-latest.tar.gz
Resolving assets.nagios.com (assets.nagios.com)... 72.14.181.71, 2600:3c00::f03c:91ff:fedf:b821
Connecting to assets.nagios.com (assets.nagios.com)|72.14.181.71|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 55327040 (53M) [application/x-gzip]
Saving to: âxi-latest.tar.gzâ
100%[======================================>] 55,327,040 1.06MB/s in 56s
2017-11-11 16:51:51 (969 KB/s) - âxi-latest.tar.gzâ saved [55327040/55327040]
[root@newnagiosxi tmp]# tar xzf xi-latest.tar.gz
[root@newnagiosxi tmp]# cd nagiosxi/
[root@newnagiosxi nagiosxi]# ./upgrade
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
Checking required prereqs...
Please wait...
OLD VERSION: 513
Loaded plugins: fastestmirror
No Match for argument: rpmforge-release
No Packages marked for removal
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: mirror.sfo12.us.leaseweb.net
* epel: mirrors.develooper.com
* extras: centos-distro.cavecreek.net
* updates: ftpmirror.your.org
Package automake-1.13.4-3.el7.noarch already installed and latest version
Package autoconf-2.69-11.el7.noarch already installed and latest version
Package php-mbstring-5.4.16-42.el7.x86_64 already installed and latest version
Package 2:nmap-6.47-1.x86_64 already installed and latest version
Package subversion-1.7.14-11.el7_4.x86_64 already installed and latest version
Nothing to do
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: mirror.sfo12.us.leaseweb.net
* epel: mirrors.develooper.com
* extras: centos-distro.cavecreek.net
* updates: ftpmirror.your.org
Package php-pecl-ssh2-0.12-1.el7.x86_64 already installed and latest version
Nothing to do
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: mirror.sfo12.us.leaseweb.net
* epel: mirrors.develooper.com
* extras: centos-distro.cavecreek.net
* updates: ftpmirror.your.org
Package perl-Test-Simple-0.98-243.el7.noarch already installed and latest version
Package perl-Class-Accessor-0.34-12.el7.noarch already installed and latest version
Package perl-Params-Validate-1.08-4.el7.x86_64 already installed and latest version
Package perl-Config-Tiny-2.14-7.el7.noarch already installed and latest version
Package perl-Math-Calc-Units-1.07-9.el7.noarch already installed and latest version
Package perl-Number-Format-1.73-14.el7.noarch already installed and latest version
Nothing to do
./upgrade: line 756: /usr/local/nagiosxi/tools/install_dashlet.php: Permission denied
[root@newnagiosxi nagiosxi]#