Page 1 of 3

Nagios XI Upgrade Failed - 5.2.9 to 5.4.2

Posted: Tue Feb 28, 2017 9:37 pm
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.

Re: Nagios XI Upgrade Failed - 5.2.9 to 5.4.2

Posted: Wed Mar 01, 2017 10:43 am
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?

Re: Nagios XI Upgrade Failed - 5.2.9 to 5.4.2

Posted: Wed Mar 01, 2017 12:22 pm
by lytxnoc
I will give it a shot and reply back with results, thanks

Re: Nagios XI Upgrade Failed - 5.2.9 to 5.4.2

Posted: Wed Mar 01, 2017 1:51 pm
by lytxnoc
Upgrade log sent via PM

Mod Edit: File received and shared with technicians.

Re: Nagios XI Upgrade Failed - 5.2.9 to 5.4.2

Posted: Wed Mar 01, 2017 3:07 pm
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.

Re: Nagios XI Upgrade Failed - 5.2.9 to 5.4.2

Posted: Wed Mar 01, 2017 5:19 pm
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.

Re: Nagios XI Upgrade Failed - 5.2.9 to 5.4.2

Posted: Wed Mar 01, 2017 7:52 pm
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.

Re: Nagios XI Upgrade Failed - 5.2.9 to 5.4.2

Posted: Thu Mar 02, 2017 12:26 pm
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.

Re: Nagios XI Upgrade Failed - 5.2.9 to 5.4.2

Posted: Thu Mar 02, 2017 1:07 pm
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.

Re: Nagios XI Upgrade Failed - 5.2.9 to 5.4.2

Posted: Thu Mar 02, 2017 1:41 pm
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.