error when upgrading from 2011 R1.9 to 2012 1.0

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
paul.jobb
Posts: 167
Joined: Tue Aug 02, 2011 4:37 pm

error when upgrading from 2011 R1.9 to 2012 1.0

Post by paul.jobb »

Hi;

I am upgrading a 32 bit XI vm appliance from 2011 R 1.9 to the latest version 2012 1.0 and amd getting the following error message:

Are you sure you want to continue? [y/N] y
Proceeding with upgrade...
chmod: cannot access `/usr/local/nagiosxi/tools/install_*.php': No such file or directory

Thanks,
Paul
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: error when upgrading from 2011 R1.9 to 2012 1.0

Post by scottwilkerson »

This is a small bug we have seen when making this big of a jump.

You can run

Code: Select all

cd /tmp/nagiosxi
cp nagiosxi/basedir/tools/install_*.php /usr/local/nagiosxi/tools/
./upgrade
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
paul.jobb
Posts: 167
Joined: Tue Aug 02, 2011 4:37 pm

Re: error when upgrading from 2011 R1.9 to 2012 1.0

Post by paul.jobb »

Thanks scott, I ended up applying 2011 R3.3 upgrade first and then upgrading to 2012.

The update did appear to downgrade some of my plugins(i.e. check_wmi_plus) which I had newer versions installed for. I did upgrade my plugin to the latest version but the services are showing up in nagios as null results even though the plugin runs fine from the command line. The nagios log file doesn't seem to indicate what the issue is, is there anything you can suggest? is it how the test is configured in nagios xi maybe?
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: error when upgrading from 2011 R1.9 to 2012 1.0

Post by lmiltchev »

Are you sure that you are using the same command for your check as the one that you are testing from the command line?
What happens when you go to: Core Config Manager->Services->Modify->Test Check Command? What is the output?
Be sure to check out our Knowledgebase for helpful articles and solutions!
paul.jobb
Posts: 167
Joined: Tue Aug 02, 2011 4:37 pm

Re: error when upgrading from 2011 R1.9 to 2012 1.0

Post by paul.jobb »

I found the problem, the updated check_wmi_plus.pl plugin(1.53) I downloaded had to updated with the correct path to the utils.pm file. When I was testing from the command line I was running it from the libexec directory where the file was located. Thanks for your help
jpipitone
Posts: 102
Joined: Tue Oct 12, 2010 1:21 pm

Re: error when upgrading from 2011 R1.9 to 2012 1.0

Post by jpipitone »

I just got the same error when trying to upgrade from 2011R3.3. I copied the 3 php files to /usr/local/nagiosxi/tools, however when I run the upgrade script, I get the same error.

I noticed in the upgrade script, there's double quotes on the line that chmod's the 3 php files to be executable. If I run the command manually, the chmod works correctly.

UPDATE: I removed the double quotes from the upgrade script and the upgrade completed with no errors.

Can anyone help?

Code: Select all

===================
2012 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.

Are you sure you want to continue? [y/N] y
Proceeding with upgrade...
chmod: cannot access `/usr/local/nagiosxi/tools/*.php': No such file or directory
Locked