Nagios XI Upgrade Failed - 5.2.9 to 5.4.2

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
lytxnoc
Posts: 44
Joined: Tue Aug 18, 2015 11:02 am

Nagios XI Upgrade Failed - 5.2.9 to 5.4.2

Post by lytxnoc »

Current Version of Nagios XI: 5.2.9
Attempted Version to upgrade to: 5.4.2
Running on CentOS release 6.7
Install is default, local db, no custom settings.

When trying to run the upgrade from XI webUI, it fails after showing a lot of details. The very last portion of the upgrade log shows:
***> One or more problems was encountered while processing the config files...

Check your configuration file(s) to ensure that they contain valid
directives and data defintions. If you are upgrading from a previous
version of Nagios, you should be aware that some variables/definitions
may have been removed or modified in this version. Make sure to read
the HTML documentation regarding the config files, as well as the
'Whats New' section to find out what has changed.

The configs are using templates so the hosts that are listed shouldn't have custom changes to them, the values are empty. I can send the entire log, but don't want to post it here.
User avatar
mcapra
Posts: 3739
Joined: Thu May 05, 2016 3:54 pm

Re: Nagios XI Upgrade Failed - 5.2.9 to 5.4.2

Post by mcapra »

Can you try running the upgrade from the CLI rather than the GUI? If you're not using an offline install, these docs describe the process:
https://assets.nagios.com/downloads/nag ... nstall.pdf

If it fails from the CLI, can you PM me a copy of the full upgrade log?
Former Nagios employee
https://www.mcapra.com/
lytxnoc
Posts: 44
Joined: Tue Aug 18, 2015 11:02 am

Re: Nagios XI Upgrade Failed - 5.2.9 to 5.4.2

Post by lytxnoc »

I will give it a shot and reply back with results, thanks
lytxnoc
Posts: 44
Joined: Tue Aug 18, 2015 11:02 am

Re: Nagios XI Upgrade Failed - 5.2.9 to 5.4.2

Post by lytxnoc »

Upgrade log sent via PM

Mod Edit: File received and shared with technicians.
dwhitfield
Former Nagios Staff
Posts: 4583
Joined: Wed Sep 21, 2016 10:29 am
Location: NoLo, Minneapolis, MN
Contact:

Re: Nagios XI Upgrade Failed - 5.2.9 to 5.4.2

Post by dwhitfield »

Could you PM or post /usr/local/nagios/etc/hosts/SDP2V-FLTSVC01.drivecam.net.cfg and /usr/local/nagios/etc/hosts/hqq3v-eobweb01.drivecaminc.loc.cfg and the associated templates?

If you do PM, please make sure you update this thread so that it shows back up on our dashboard.

In the interest of time, since it is just two hosts that are causing issues, I wonder if you could just remove those and then set them back up after upgrade. It's not ideal, but it might get you up and running more quickly.
lytxnoc
Posts: 44
Joined: Tue Aug 18, 2015 11:02 am

Re: Nagios XI Upgrade Failed - 5.2.9 to 5.4.2

Post by lytxnoc »

I sent over the requested configs via PM. I can try removing just the 2 problem configs, but I'm working on something else at the moment and will not get back to this issue for another couple of hours.
lytxnoc
Posts: 44
Joined: Tue Aug 18, 2015 11:02 am

Re: Nagios XI Upgrade Failed - 5.2.9 to 5.4.2

Post by lytxnoc »

I tried running the update again after removing the 2 problem config files and there are more errors with more hosts. Is there a way to run the verification of config files for the new version before running the upgrade? As it stands, the current version doesn't mark these config files as having errors.
User avatar
lmiltchev
Former Nagios Staff
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Nagios XI Upgrade Failed - 5.2.9 to 5.4.2

Post by lmiltchev »

As it stands, the current version doesn't mark these config files as having errors.
How did you verify the configuration, from the command line or from the GUI?

Go to the CCM->Tools->Write Config Files, and click on Delete, Write, Verify buttons (in the exact same order).

If you see any errors, show the output. If you don't see any errors - apply configuration, then try running the upgrade once more.

If the upgrade fails again - post the "upgrade.log" file.
Be sure to check out our Knowledgebase for helpful articles and solutions!
lytxnoc
Posts: 44
Joined: Tue Aug 18, 2015 11:02 am

Re: Nagios XI Upgrade Failed - 5.2.9 to 5.4.2

Post by lytxnoc »

Hi lmiltchev, the configs are saved. The verification of configs were run from WebGUI. Following your steps, the "Delete" button says it'll delete all hosts/service config files. Is that destructive and will wipe everything out?

The upgrades have always been run after configs are saved successfully.
User avatar
lmiltchev
Former Nagios Staff
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Nagios XI Upgrade Failed - 5.2.9 to 5.4.2

Post by lmiltchev »

Have you tried clicking on "Write" and "Verify" buttons (without hitting the "Delete" button)? Do you see any config errors?

The "Delete" button removes all configs from "/usr/local/nagios/etc/hosts/" and "/usr/local/nagios/etc/services/". The configs are still present in the CCM (database). When you click on "Write", the configs are rewritten back to flat files. Provided you don't have any config errors, you can apply configuration. If applying configuration fails, nagios will revert to the last good config snapshot.

Deleting the configs, writing, verifying, and applying configuration eliminates some "ghost" host/service issues, which used to be more common in the older versions of Nagios XI.

If you are concerned about using the "Delete" button, you could just move the files to a "backup" directory or "/tmp".

Code: Select all

mkdir /tmp/hosts /tmp/services
mv /usr/local/nagios/etc/hosts/* /tmp/hosts/
mv /usr/local/nagios/etc/services/* /tmp/services/
Then you can click on Write, Verify, and Apply Configuration. If there are no errors, run the upgrade.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked