Nagios XI: Manually upgrade to Latest version - Not working

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
dbsaust
Posts: 76
Joined: Mon Dec 06, 2010 12:41 am

Nagios XI: Manually upgrade to Latest version - Not working

Post by dbsaust »

Hi,
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]#

User avatar
tacolover101
Posts: 432
Joined: Mon Apr 10, 2017 11:55 am

Re: Nagios XI: Manually upgrade to Latest version - Not wor

Post by tacolover101 »

what are the permissions on the file?

this upgrade is likely running as the nagios user. ensure they have the correct permission.

if your security team has modified any files, or altered permission of what Nagios can do - this could be affecting it.
kyang

Re: Nagios XI: Manually upgrade to Latest version - Not wor

Post by kyang »

Thanks @tacolover101!

@dbsaust, as tacolover101 mentioned. Let us know the permissions on the directory and the files so we can see.

Code: Select all

ls -lad /usr/local/nagiosxi/tools

ll /usr/local/nagiosxi/tools
You could try resetting the permissions with a script located in XI. If available.

Code: Select all

cd /usr/local/nagiosxi/scripts

Code: Select all

./reset_config_perms.sh
Then rerun the ./upgrade from the latest tar and see what happens.
dbsaust
Posts: 76
Joined: Mon Dec 06, 2010 12:41 am

Re: Nagios XI: Manually upgrade to Latest version - Not wor

Post by dbsaust »

Thanks @tacolover101 and @kyang
Changed install_dashlet.php permission to 755
Upgrade was successful after chmod.

Thanks again.
kyang

Re: Nagios XI: Manually upgrade to Latest version - Not wor

Post by kyang »

Sounds good! I'll be closing this thread!

If you have any more questions, feel free to create another thread.

Thanks for using the Nagios Support Forum!
Locked