Error while upgrading to XI latest version

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
cyient
Posts: 116
Joined: Thu May 08, 2014 4:45 am

Error while upgrading to XI latest version

Post by cyient »

Hi,

I have below error while upgrading Nagios XI version to latest and below is the error message.

Code: Select all

Installing/updating XI wizards...
Backing up existing wizards to /tmp/xiwizards_backup...
Installing 'wizards/autodiscovery.zip'
./install: line 18: /usr/local/nagiosxi/tools/install_configwizard.php: Permission denied
I have tried to visit the page https://support.nagios.com/forum/viewto ... 16&t=35730 but got error as you are not authorized to read this forum.

Please suggest on this
Last edited by dwhitfield on Thu May 11, 2017 9:18 am, edited 1 time in total.
Reason: marking with green check mark
dwhitfield
Former Nagios Staff
Posts: 4583
Joined: Wed Sep 21, 2016 10:29 am
Location: NoLo, Minneapolis, MN
Contact:

Re: Error while upgrading to XI latest version

Post by dwhitfield »

What's the output of the two following commands? Example outout provided. Also, can you PM or post your /etc/sudoers? If you PM, please make sure you update the post so it shows back up on our dashboard.

Code: Select all

[root@centos7x64 ~]# ll -d /usr/local/nagiosxi/tools/
drwxr-xr-x 2 nagios nagios 4096 Apr 11 14:21 /usr/local/nagiosxi/tools/

[root@centos7x64 ~]# ll /usr/local/nagiosxi/tools/
total 68
-rwxr-x--- 1 nagios nagios  762 Apr 26 15:57 check_postgres_sequences.sh
-rwxr-x--- 1 nagios nagios 2584 Apr 26 15:57 create_checks.php
-rwxr-x--- 1 nagios nagios  864 Apr 26 15:57 fix_perfgraph_user.php
-rwxr-x--- 1 nagios nagios 2260 Apr 26 15:57 fix_postgres_sequences.sh
-rwxr-x--- 1 nagios nagios 1994 Apr 26 15:57 getrep.php
-rwxr-x--- 1 nagios nagios 2124 Apr 26 15:57 geturlas.php
-rwxr-x--- 1 nagios nagios 4144 Apr 26 15:57 install_component.php
-rwxr-x--- 1 nagios nagios 3647 Apr 26 15:57 install_configwizard.php
-rwxr-x--- 1 nagios nagios 3196 Apr 26 15:57 install_dashlet.php
-rwxr-x--- 1 nagios nagios 1096 Apr 26 15:57 mod_option.php
-rwxr-x--- 1 nagios nagios 1579 Apr 26 15:57 mod_usermeta.php
-rwxr-x--- 1 nagios nagios 1626 Apr 26 15:57 mod_user.php
-rwxr-x--- 1 nagios nagios 1274 Apr 26 15:57 mysql_tune.sh
-rwxr-x--- 1 nagios nagios 3106 Apr 26 15:57 rrd2csv.php
-rwxr-x--- 1 nagios nagios  672 Apr 26 15:57 xi_prep_dir.php
-rwxr-x--- 1 nagios nagios 3427 Apr 26 15:57 xiprepimport.php
cyient
Posts: 116
Joined: Thu May 08, 2014 4:45 am

Re: Error while upgrading to XI latest version

Post by cyient »

dwhitfield wrote:What's the output of the two following commands? Example outout provided. Also, can you PM or post your /etc/sudoers? If you PM, please make sure you update the post so it shows back up on our dashboard.

Code: Select all

[root@centos7x64 ~]# ll -d /usr/local/nagiosxi/tools/
drwxr-xr-x 2 nagios nagios 4096 Apr 11 14:21 /usr/local/nagiosxi/tools/

[root@centos7x64 ~]# ll /usr/local/nagiosxi/tools/
total 68
-rwxr-x--- 1 nagios nagios  762 Apr 26 15:57 check_postgres_sequences.sh
-rwxr-x--- 1 nagios nagios 2584 Apr 26 15:57 create_checks.php
-rwxr-x--- 1 nagios nagios  864 Apr 26 15:57 fix_perfgraph_user.php
-rwxr-x--- 1 nagios nagios 2260 Apr 26 15:57 fix_postgres_sequences.sh
-rwxr-x--- 1 nagios nagios 1994 Apr 26 15:57 getrep.php
-rwxr-x--- 1 nagios nagios 2124 Apr 26 15:57 geturlas.php
-rwxr-x--- 1 nagios nagios 4144 Apr 26 15:57 install_component.php
-rwxr-x--- 1 nagios nagios 3647 Apr 26 15:57 install_configwizard.php
-rwxr-x--- 1 nagios nagios 3196 Apr 26 15:57 install_dashlet.php
-rwxr-x--- 1 nagios nagios 1096 Apr 26 15:57 mod_option.php
-rwxr-x--- 1 nagios nagios 1579 Apr 26 15:57 mod_usermeta.php
-rwxr-x--- 1 nagios nagios 1626 Apr 26 15:57 mod_user.php
-rwxr-x--- 1 nagios nagios 1274 Apr 26 15:57 mysql_tune.sh
-rwxr-x--- 1 nagios nagios 3106 Apr 26 15:57 rrd2csv.php
-rwxr-x--- 1 nagios nagios  672 Apr 26 15:57 xi_prep_dir.php
-rwxr-x--- 1 nagios nagios 3427 Apr 26 15:57 xiprepimport.php
Hi,

I have PM the requested details
dwhitfield
Former Nagios Staff
Posts: 4583
Joined: Wed Sep 21, 2016 10:29 am
Location: NoLo, Minneapolis, MN
Contact:

Re: Error while upgrading to XI latest version

Post by dwhitfield »

install_configwizard.php has the wrong permissions.

It looks like the following do as well, although I don't know that it's causing you an issue now.

Code: Select all

install_dashlet.php
install_component.php
At the very least you need to run the following:

Code: Select all

chmod 755 /usr/local/nagiosxi/tools/install_configwizard.php
If you get a new error message, match the file it gives against the permissions I gave you in my last post.
cyient
Posts: 116
Joined: Thu May 08, 2014 4:45 am

Re: Error while upgrading to XI latest version

Post by cyient »

Hi,

I have overcome the permissions problem but came across another error. Below is the part of the error, find the attached log for complete details

Code: Select all

[quote]Failed tests:  1-2
  Non-zero exit status: 255
  Parse errors: Bad plan.  You planned 93 tests but ran 2.
Files=16, Tests=33,  1 wallclock secs ( 0.06 usr  0.03 sys +  0.48 cusr  0.10 csys =  0.67 CPU)
Result: FAIL
[/quote]
You do not have the required permissions to view the files attached to this post.
dwhitfield
Former Nagios Staff
Posts: 4583
Joined: Wed Sep 21, 2016 10:29 am
Location: NoLo, Minneapolis, MN
Contact:

Re: Error while upgrading to XI latest version

Post by dwhitfield »

I have this feeling this is just going to be the first of many, but you can run cpan Nagios::Monitoring::Plugin and get that installed. Just keep stepping through if you get errors. If it says .pm, then that means it's perl. If you aren't able to locate things in repos or in cpan, please let us know and we can help out.
cyient
Posts: 116
Joined: Thu May 08, 2014 4:45 am

Re: Error while upgrading to XI latest version

Post by cyient »

Thanks it worked.

Successfully upgraded to latest version.

Please go ahead and mark it as complete.
Locked