Nagios XI 2014 Upgrade Failure

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
heritages
Posts: 58
Joined: Thu Jan 16, 2014 11:55 am

Nagios XI 2014 Upgrade Failure

Post by heritages »

Good Morning

Running the upgrade and had it fail on during the config check.

Code: Select all

*** Main program, CGIs and HTML files installed ***

You can continue with installing Nagios as follows (type 'make'
without any arguments for a list of all possible options):

  make install-init
     - This installs the init script in /etc/rc.d/init.d

  make install-commandmode
     - This installs and configures permissions on the
       directory for holding the external command file

  make install-config
     - This installs sample config files in /usr/local/nagios/etc

make[1]: Leaving directory `/tmp/nagiosxi/subcomponents/nagioscore/nagios-4.0.5'
Running configuration check... CONFIG ERROR!  Restart aborted.  Check your Nagios configuration.
Ran the below check and got these results.

Code: Select all

[root@Mis1SmMo02 nagiosxi]# /usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg

Nagios Core 4.0.5
Copyright (c) 2009-present Nagios Core Development Team and Community Contributors
Copyright (c) 1999-2009 Ethan Galstad
Last Modified: 04-11-2014
License: GPL

Website: http://www.nagios.org
Reading configuration data...
   Read main config file okay...
Warning: failure_prediction_enabled is obsoleted and no longer has any effect in host type objects (config file '/usr/local/nagios/etc/hosttemplates.cfg', starting at line 14)
Warning: failure_prediction_enabled is obsoleted and no longer has any effect in host type objects (config file '/usr/local/nagios/etc/hosttemplates.cfg', starting at line 134)
Warning: failure_prediction_enabled is obsoleted and no longer has any effect in service type objects (config file '/usr/local/nagios/etc/servicetemplates.cfg', starting at line 80)
Warning: failure_prediction_enabled is obsoleted and no longer has any effect in service type objects (config file '/usr/local/nagios/etc/servicetemplates.cfg', starting at line 183)
Error: Service escalation host name or description is NULL
Error: Could not register service escalation (config file '/usr/local/nagios/etc/serviceescalations.cfg', starting on line 68)
   Error processing object config files!


***> 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.

[root@Mis1SmMo02 nagiosxi]#


Not sure how to resolve this.
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: Nagios XI 2014 Upgrade Failure

Post by slansing »

Well it looks like a standard configuration error that you would normally run into if you had issues with a configuration as outlined here http://nagios.sourceforge.net/docs/3_0/ ... onfig.html. Take a look at line 68 of:

Code: Select all

/usr/local/nagios/etc/serviceescalations.cfg
It's likely that the escalation defined there was removed from the CCM but still stayed as a ghost in that configuration file, in which case, simply remove the definition surrounding line 68, write out the file, and just to test, apply configuration from the XI web interface. If that definition that you removed is not recreated you are clear to run the upgrade again. I'd also recommend verifying your configurations a second time:

Code: Select all

/usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg
heritages
Posts: 58
Joined: Thu Jan 16, 2014 11:55 am

Re: Nagios XI 2014 Upgrade Failure

Post by heritages »

that did the trick.

thanks
Locked