Upgrading from xi 20112.3 to xi 200113.2?

This support forum board is for support questions relating to Nagios xi, our flagship commercial network monitoring solution.
jbennett
Posts: 522
Joined: Mon Apr 16, 2012 3:00 pm

Upgrading from xi 20112.3 to xi 200113.2?

Post by jbennett »

I am attempting to upgrade to the latest version on my backup server. This server was running 2.3.

When I try to go through the upgrade script, it appears to go through a number of additional steps which I have not seen before on other upgardes.

In the end, I get a message:

Code: Select all

IOError: [Errno socket error] [Errno 111] Connection refused
When I go to my nagios install, it still shows to be on 2.3 and when I try to view information (Tactical Overview for example), I get the following:
Whoops!

Error: Could not read object configuration data!

Here are some things you should check in order to resolve this error:

Verify configuration options using the -v command-line option to check for errors.
Check the Nagios log file for messages relating to startup or status data errors.
Make sure you read the documentation on installing, configuring and running Nagios thoroughly before continuing. If all else fails, try sending a message to one of the mailing lists. More information can be found at http://www.nagios.org.
When I check the log, this is what I see:

Code: Select all

[1342723059] Error: Unable to rename file '/usr/local/nagios/var/nagios.tmpdlgRUP' to '/var/nagiosramdisk/status.dat': No such file or directory
[1342723059] Error: Unable to update status data file '/var/nagiosramdisk/status.dat': No such file or directory
[1342723068] Error: Unable to rename file '/usr/local/nagios/var/nagios.tmpb05TKK' to '/var/nagiosramdisk/status.dat': No such file or directory
[1342723068] Error: Unable to update status data file '/var/nagiosramdisk/status.dat': No such file or directory
This continues to pop up throughout the entire upgrade process.

Have I done something out of order here?
Last edited by jbennett on Wed Jul 18, 2012 2:46 pm, edited 1 time in total.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises

Re: Upgrading from xi 20112.3 to xi 200113.2?

Post by scottwilkerson »

Is nagios running?

Code: Select all

service nagios status
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
jbennett
Posts: 522
Joined: Mon Apr 16, 2012 3:00 pm

Re: Upgrading from xi 20112.3 to xi 200113.2?

Post by jbennett »

nagios (pid 1941) is running...
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises

Re: Upgrading from xi 20112.3 to xi 200113.2?

Post by scottwilkerson »

does your status.dat & objects.cached files exist on your ramdisk?
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
jbennett
Posts: 522
Joined: Mon Apr 16, 2012 3:00 pm

Re: Upgrading from xi 20112.3 to xi 200113.2?

Post by jbennett »

When I check /usr/local/nagios/var, I don't see status.dat, but I do see objects.cache.

I have the following for reference:

Code: Select all

archives
nagios.log   
npcd.log.old  
rw
graphapi.log   
ndo2db.lock  
objects.cache  
service-perfdata
host-perfdata  
ndo.sock     
perfdata.log   
spool
nagios.lock    
npcd.log     
retention.dat  
stats
A quick search on 'status.dat' only showed how to parse the file, not how to generate it from scratch or why it would be missing?

EDIT: I see where the path to this file is set in nagios.cfg. In there, I see that the path selected is /var/nagiosramdisk instead of /usr/local/nagios/var

This leads me to understand that the previous install was utilizing a ram disk set-up, where as it appears that this current set-up is not. I suppose I will look at implementing it now as this is a good time!
mguthrie
Posts: 4380
Joined: Mon Jun 14, 2010 10:21 am

Re: Upgrading from xi 20112.3 to xi 200113.2?

Post by mguthrie »

Here's our doc on implementing the ram disk. My guess is that the RAM disk was not set up to be recreated after a reboot.
http://assets.nagios.com/downloads/nagi ... giosxi.pdf
jbennett
Posts: 522
Joined: Mon Apr 16, 2012 3:00 pm

Re: Upgrading from xi 20112.3 to xi 200113.2?

Post by jbennett »

I have implemented the ramdisk setup, applied the update again, and it's still showing 2.3 when I log back in after clearing cache.
mguthrie
Posts: 4380
Joined: Mon Jun 14, 2010 10:21 am

Re: Upgrading from xi 20112.3 to xi 200113.2?

Post by mguthrie »

Make sure you've cleared the temp directory of all previous tarballs and the /tmp/nagiosxi directory. If wget downloads the xi-latest.tar.gz file when it already exists in that directory, it will rename it to: xi-latest.tar.gz(1). So it's possible you re-ran the upgrade for 2.4.
jbennett
Posts: 522
Joined: Mon Apr 16, 2012 3:00 pm

Re: Upgrading from xi 20112.3 to xi 200113.2?

Post by jbennett »

mguthrie wrote:Make sure you've cleared the temp directory of all previous tarballs and the /tmp/nagiosxi directory. If wget downloads the xi-latest.tar.gz file when it already exists in that directory, it will rename it to: xi-latest.tar.gz(1). So it's possible you re-ran the upgrade for 2.4.
The unfortunate part of that is that I am behind a proxy and cannot use wget. I had downloaded the update manually and copied it over via SCP in order to get the update to the /tmp folder.

I just tried again, this time having downloaded from the link, and after having removed the files and folder, and still no dice.
User avatar
lmiltchev
Former Nagios Staff
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Upgrading from xi 20112.3 to xi 200113.2?

Post by lmiltchev »

The unfortunate part of that is that I am behind a proxy and cannot use wget.
Please, read our wiki page on using Nagios xi with proxies:

http://support.nagios.com/wiki/index.ph ... th_Proxies
Be sure to check out our Knowledgebase for helpful articles and solutions!