Page 1 of 2

Upgrading from XI 20112.3 to XI 200113.2?

Posted: Wed Jul 18, 2012 1:42 pm
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?

Re: Upgrading from XI 20112.3 to XI 200113.2?

Posted: Wed Jul 18, 2012 2:41 pm
by scottwilkerson
Is nagios running?

Code: Select all

service nagios status

Re: Upgrading from XI 20112.3 to XI 200113.2?

Posted: Wed Jul 18, 2012 2:47 pm
by jbennett
nagios (pid 1941) is running...

Re: Upgrading from XI 20112.3 to XI 200113.2?

Posted: Wed Jul 18, 2012 2:55 pm
by scottwilkerson
does your status.dat & objects.cached files exist on your ramdisk?

Re: Upgrading from XI 20112.3 to XI 200113.2?

Posted: Wed Jul 18, 2012 3:31 pm
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!

Re: Upgrading from XI 20112.3 to XI 200113.2?

Posted: Thu Jul 19, 2012 9:11 am
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

Re: Upgrading from XI 20112.3 to XI 200113.2?

Posted: Thu Jul 19, 2012 11:25 am
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.

Re: Upgrading from XI 20112.3 to XI 200113.2?

Posted: Thu Jul 19, 2012 12:59 pm
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.

Re: Upgrading from XI 20112.3 to XI 200113.2?

Posted: Thu Jul 19, 2012 2:49 pm
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.

Re: Upgrading from XI 20112.3 to XI 200113.2?

Posted: Thu Jul 19, 2012 3:01 pm
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