Page 1 of 1

Upgrading to Enterprise

Posted: Wed Jun 26, 2013 7:46 am
by eddiez
I am trying to upgrade to the latest version of XI and things are not happening the way it should. Following are the steps that I have done with the results.

- Did a full install of the latest XI on a new server - No issues
- Entered license key and activation key for Enterprise - No issues
- Restored my data, configs, etc from existing XI server (v2011R2.4) onto new XI - No issues or errors

When I went to login to new XI server, it reverted the XI version back to 2011R2.4.

- Performed the upgrade on the new server
Watching the screen all looked good until the last few lines......

Here is the last few lines: *** Compile finished ***

If the compile finished without any errors, you should
find client and server binaries in the src/ subdirectory.

Read the README file for more information on installing
the binaries, creating configuration files, and using
the server and client.

Traceback (most recent call last):
File "./install", line 17, in <module>
installpath = os.environ['INSTALL_PATH']
File "/usr/lib64/python2.6/UserDict.py", line 22, in __getitem__
raise KeyError(key)
KeyError: 'INSTALL_PATH'


When I went back into the new server, it was still version 2011R2.4

What am I doing wrong?

Ed

Re: Upgrading to Enterprise

Posted: Wed Jun 26, 2013 9:26 am
by abrist
eddiez wrote:- Restored my data, configs, etc from existing XI server (v2011R2.4) onto new XI - No issues or errors
When I went to login to new XI server, it reverted the XI version back to 2011R2.4.
So was the server running 2012r2.2 before the restore of the backup and then running 2012r2.4 afterwards?

Re: Upgrading to Enterprise

Posted: Wed Jun 26, 2013 9:27 am
by slansing
Are you making sure to log out and log back in? You should get a 'Complete Upgrade' Button then, right on the spashpage of the server's IP.

You may need to make some mini hops before being able to upgrade to 2012. Lets try this, remove all traces of the nagiosxi install package in /tmp, then download the following:

http://assets.nagios.com/downloads/nagi ... 3.3.tar.gz

extract it, and run the upgrade script. If you get no errors then remove all traces of the package and folder once again, and download this one:

http://assets.nagios.com/downloads/nagi ... 2.2.tar.gz

And upgrade via this one now. You should be set at this point. It is curious though, that you were able to enter an enterprise key in 2011 which is not possible, so you must have been upgraded at one point.

Re: Upgrading to Enterprise

Posted: Wed Jun 26, 2013 10:31 am
by eddiez
slansing wrote:Are you making sure to log out and log back in? You should get a 'Complete Upgrade' Button then, right on the spashpage of the server's IP.

You may need to make some mini hops before being able to upgrade to 2012. Lets try this, remove all traces of the nagiosxi install package in /tmp, then download the following:

http://assets.nagios.com/downloads/nagi ... 3.3.tar.gz

extract it, and run the upgrade script. If you get no errors then remove all traces of the package and folder once again, and download this one:

Completed this, the following is what I saw at the end. I was able to login and answer the upgrade screen question. Should I continue with the next step?

LOGIN SUCCESSFUL!
URL: http://localhost/nagiosql/admin/verify.php
CMDLINE:
/usr/bin/wget --load-cookies=nagiosql.cookies http://localhost/nagiosql/admin/verify.php --no-check-certificate --post-data 'writeMo
nitoring=Go' -O nagiosql.export.monitoring
--2013-06-26 10:25:38-- http://localhost/nagiosql/admin/verify.php
Resolving localhost... ::1, 127.0.0.1
Connecting to localhost|::1|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 4788 (4.7K) [text/html]
Saving to: "nagiosql.export.monitoring"

100%[==========================================================================================>] 4,788 --.-K/s in 0s

2013-06-26 10:26:26 (150 MB/s) - "nagiosql.export.monitoring" saved [4788/4788]

NAGIOSQL WRITE CONFIGS FAILED!\n

http://assets.nagios.com/downloads/nagi ... 2.2.tar.gz

And upgrade via this one now. You should be set at this point. It is curious though, that you were able to enter an enterprise key in 2011 which is not possible, so you must have been upgraded at one point.

Re: Upgrading to Enterprise

Posted: Wed Jun 26, 2013 10:33 am
by slansing
Yes, are you able to log in and complete the upgrade? If so, run an apply configuration from the core config manager and let us know if it errors out.

Re: Upgrading to Enterprise

Posted: Wed Jun 26, 2013 10:59 am
by eddiez
slansing wrote:Yes, are you able to log in and complete the upgrade? If so, run an apply configuration from the core config manager and let us know if it errors out.
I issues the "Write monitoring data" - after a bit the screen section refreshed to a blank section. So I refreshed the screen and the was back to where I started. So I proceeded and clicked on "Write additional data" - all cfg files came back "successfully written. Next "Check configuration files" - had 432 warning 0 errors. I clicked "Restart Nagios" - message was Restart command successfully sent to Nagios

I went and selected "Apply Configuration" -

Applying Configuration

Command submitted for processing...
Waiting for configuration verification......................................................
Configurations failed to write to file.
An error occurred while attempting to apply your configuration to Nagios Core. Monitoring engine configuration files have been rolled back to their last known good checkpoint.

View a snapshot of this configuration error

When I do "View a snapshot of this configuration error" I don't a snapshot error listed

What are the next steps.

Re: Upgrading to Enterprise

Posted: Wed Jun 26, 2013 11:11 am
by slansing
Can you send a ticket in to [email protected]?

Re: Upgrading to Enterprise

Posted: Wed Jun 26, 2013 11:15 am
by eddiez
slansing wrote:Can you send a ticket in to [email protected]?
Will do

Re: Upgrading to Enterprise

Posted: Wed Jun 26, 2013 11:24 am
by slansing
Moving to ticketing.