error upgrading to 2012

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
JarrodHardy
Posts: 18
Joined: Wed Mar 09, 2011 5:44 pm

error upgrading to 2012

Post by JarrodHardy »

VMware image install
Original version - 2009R1.4B
Upgraded to version - 2011R3.3 (about 30 minutes ago ran fine)
Need to upgrade to version - 2012R1.8 (latest version)
64bit VMware image pre-installed Nagios XI - No special configurations.

I receive the following error when trying to upgrade to 2012:
chmod: cannot access `/usr/local/nagiosxi/tools/*.php': No such file or directory

The directory in question does exist with the files:
[root@HOSTNAME scripts]# pwd
/usr/local/nagiosxi/scripts
[root@HOSTNAME scripts]# ll /usr/local/nagiosxi/tools/*.php
-rwxr-x--- 1 nagios nagios 2855 Jan 23 12:37 /usr/local/nagiosxi/tools/create_checks.php
-rwxr-x--- 1 nagios nagios 879 Jan 23 12:37 /usr/local/nagiosxi/tools/fix_perfgraph_user.php
-rwxr-x--- 1 nagios nagios 1746 Jan 23 12:37 /usr/local/nagiosxi/tools/getrep.php
-rwxr-x--- 1 nagios nagios 2173 Jan 23 12:37 /usr/local/nagiosxi/tools/geturlas.php
-rwxr-x--- 1 nagios nagios 3541 Jan 23 12:58 /usr/local/nagiosxi/tools/install_component.php
-rwxr-x--- 1 nagios nagios 3710 Jan 23 12:58 /usr/local/nagiosxi/tools/install_configwizard.php
-rwxr-x--- 1 nagios nagios 3239 Jan 23 12:58 /usr/local/nagiosxi/tools/install_dashlet.php
-rwxr-x--- 1 nagios nagios 1110 Jan 23 12:37 /usr/local/nagiosxi/tools/mod_option.php
-rwxr-x--- 1 nagios nagios 1611 Jan 23 12:37 /usr/local/nagiosxi/tools/mod_usermeta.php
-rwxr-x--- 1 nagios nagios 1658 Jan 23 12:37 /usr/local/nagiosxi/tools/mod_user.php
-rwxr-x--- 1 nagios nagios 3106 Jan 23 12:37 /usr/local/nagiosxi/tools/rrd2csv.php
-rwxr-x--- 1 nagios nagios 670 Jan 23 12:37 /usr/local/nagiosxi/tools/xi_prep_dir.php
-rwxr-x--- 1 nagios nagios 3743 Jan 23 12:37 /usr/local/nagiosxi/tools/xiprepimport.php
I originally was on 2009, so I tried updating to 2011 first and that worked fine, but then tried 2012 again, and still get this install error.

Here is the full output:
[root@HOSTNAME tmp]# wget http://assets.nagios.com/downloads/nagi ... est.tar.gz
--2014-01-23 13:04:31-- http://assets.nagios.com/downloads/nagi ... est.tar.gz
...
[root@HOSTNAME tmp]# tar -zxvf xi-latest.tar.gz
...
[root@HOSTNAME tmp]# cd nagiosxi
...
[root@HOSTNAME nagiosxi]# ./upgrade
OLD VERSION: 218
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* addons: centos.unmeteredvps.net
* base: ftpmirror.your.org
* extras: centos.unmeteredvps.net
* updates: mirror.oss.ou.edu
Setting up Install Process
Package bc-1.06-21.i386 already installed and latest version
Package matching dstat-0.6.6-5.el5.noarch already installed. Checking for update.
Package expat-devel-1.95.8-11.el5_8.i386 already installed and latest version
Package mailx-8.1.1-44.2.2.i386 already installed and latest version
Package 1:mod_ssl-2.2.3-83.el5.centos.i386 already installed and latest version
Package python-numpy-1.0.1-1.el5.rf.i386 already installed and latest version
Package openldap-2.3.43-25.el5_8.1.i386 already installed and latest version
Package openldap-devel-2.3.43-25.el5_8.1.i386 already installed and latest version
Package perl-Mail-IMAPClient-3.23-1.el5.rf.noarch already installed and latest version
Package perl-Net-DNS-0.59-3.el5.i386 already installed and latest version
Package python-lxml-2.0.11-2.el5.i386 already installed and latest version
No package pymssql available.
Package python-simplejson-2.0.9-8.el5.i386 already installed and latest version
No package rpmdevtools available.
Package python-rrdtool-1.4.7-1.el5.rf.i386 already installed and latest version
Package sudo-1.7.2p1-28.el5.i386 already installed and latest version
Package 3:traceroute-2.0.1-6.el5.i386 already installed and latest version
Nothing to do
===================
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
[root@HOSTNAME nagiosxi]#
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: error upgrading to 2012

Post by slansing »

What is the output of:

Code: Select all

ls -la /usr/local/nagiosxi/tools/*
We're working through this issue with a customer on our ticketing system as well, seems like some validation or addition of these scripts/dirs was missed in the last release. We are trying to track it down.
JarrodHardy
Posts: 18
Joined: Wed Mar 09, 2011 5:44 pm

Re: error upgrading to 2012

Post by JarrodHardy »

Thank you, here are the results:

[root@HOSTNAME scripts]# ls -la /usr/local/nagiosxi/tools/*
-rwxr-x--- 1 nagios nagios 417 Jan 23 12:37 /usr/local/nagiosxi/tools/check_postgres_sequences.sh
-rwxr-x--- 1 nagios nagios 2855 Jan 23 12:37 /usr/local/nagiosxi/tools/create_checks.php
-rwxr-x--- 1 nagios nagios 879 Jan 23 12:37 /usr/local/nagiosxi/tools/fix_perfgraph_user.php
-rwxr-x--- 1 nagios nagios 590 Mar 8 2011 /usr/local/nagiosxi/tools/fix_perfgraph_user.zip
-rwxr-x--- 1 nagios nagios 1752 Jan 23 12:37 /usr/local/nagiosxi/tools/fix_postgres_sequences.sh
-rwxr-x--- 1 nagios nagios 1746 Jan 23 12:37 /usr/local/nagiosxi/tools/getrep.php
-rwxr-x--- 1 nagios nagios 2173 Jan 23 12:37 /usr/local/nagiosxi/tools/geturlas.php
-rwxr-x--- 1 nagios nagios 3541 Jan 23 12:58 /usr/local/nagiosxi/tools/install_component.php
-rwxr-x--- 1 nagios nagios 3710 Jan 23 12:58 /usr/local/nagiosxi/tools/install_configwizard.php
-rwxr-x--- 1 nagios nagios 3239 Jan 23 12:58 /usr/local/nagiosxi/tools/install_dashlet.php
-rwxr-x--- 1 nagios nagios 1110 Jan 23 12:37 /usr/local/nagiosxi/tools/mod_option.php
-rwxr-x--- 1 nagios nagios 1611 Jan 23 12:37 /usr/local/nagiosxi/tools/mod_usermeta.php
-rwxr-x--- 1 nagios nagios 1658 Jan 23 12:37 /usr/local/nagiosxi/tools/mod_user.php
-rwxr-x--- 1 nagios nagios 3106 Jan 23 12:37 /usr/local/nagiosxi/tools/rrd2csv.php
-rwxr-x--- 1 nagios nagios 670 Jan 23 12:37 /usr/local/nagiosxi/tools/xi_prep_dir.php
-rwxr-x--- 1 nagios nagios 3743 Jan 23 12:37 /usr/local/nagiosxi/tools/xiprepimport.php
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: error upgrading to 2012

Post by lmiltchev »

I believe this is a small bug that affects only people upgrading from 2009 to 2012. Anyway, open the upgrade script in a text editor:

Code: Select all

cd /tmp/nagiosxi
vi upgrade
and change the following line (@ approximately line 346) from this:

Code: Select all

chmod +x "$proddir/tools/*.php"
to this:

Code: Select all

chmod +x $proddir/tools/*.php
Then, run the upgrade script again:

Code: Select all

./upgrade
Let me know if this helped.
Be sure to check out our Knowledgebase for helpful articles and solutions!
JarrodHardy
Posts: 18
Joined: Wed Mar 09, 2011 5:44 pm

Re: error upgrading to 2012

Post by JarrodHardy »

That worked, "2012R2.8" installed, thank you.

While the install was running, I managed to catch a message and just want to make sure everything should be fine since the install completed?
Everything seems fine on "2012R2.8" so far, but I also see an update is available "2012R2.8c", is it OK to proceed with that install or should additional validate be done?
#############################
# Adding NRDS to NRDP Server
############################

copying files...
cp: target `/usr/local/nrdp' is not a directory
chmod: cannot access `/usr/local/nrdp/configs': No such file or directory
chmod: cannot access `/usr/local/nrdp/plugins': No such file or directory
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: error upgrading to 2012

Post by slansing »

You should be fine, if/when you do decide to you NRDP you will be setting it up through the web interface and that should take care of those directories.
JarrodHardy
Posts: 18
Joined: Wed Mar 09, 2011 5:44 pm

Re: error upgrading to 2012

Post by JarrodHardy »

I updated to 2012R2.8c without any errors and everything is working great, thank you very much!

Note: I did not modify the line in the 2012R2.8c upgrade script and it installed fine after 2012R2.8 was installed. I almost modified the line again, but figured try it first without modification.

Thank you again!
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: error upgrading to 2012

Post by lmiltchev »

Sounds good! I am locking this topic as "resolved".
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked