Page 1 of 3

Upgrade to Nagios 2014 failed

Posted: Mon May 26, 2014 10:03 am
by RIDS_I2MP
Hi,


We are trying to upgrade to Nagios XI 2014R1.0 from Nagios XI 2012R2.8c, however we have ended up with error message "make[1]: Leaving directory `/tmp/nagiosxi/subcomponents/nagioscore/nagios-4.0.5'
Running configuration check... CONFIG ERROR! Restart aborted. Check your Nagios configuration.

After this when we tried to restart the nagios service it failed to start and ended up with error message to check the confihegurations. We have now restored the Nagios XI using the backup and verified the config files with No warning or Error messages. We have tried the upgrade again but ended up with the same error message. I have attached the install log for your reference, please suggest.
install_log_latest.txt

Re: Upgrade to Nagios 2014 failed

Posted: Mon May 26, 2014 10:47 am
by RIDS_I2MP
We have done some testing on our side and understood that the error comes up after nagios core is upgraded. Nagios service is being restarted after the core upgrade as per the script and we get this message just after the command is executed.

When we run the verify after upgrade we get the below output.

Website: http://www.nagios.org
Reading configuration data...
Warning: use_embedded_perl_implicitly is deprecated and will be removed.
Warning: sleep_time is deprecated and will be removed.
Warning: p1_file is deprecated and will be removed.
Warning: external_command_buffer_slots is deprecated and will be removed. All commands are always processed upon arrival
Warning: enable_embedded_perl is deprecated and will be removed.
Warning: command_check_interval is deprecated and will be removed. Commands are always handled on arrival
Read main config file okay...
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.

Re: Upgrade to Nagios 2014 failed

Posted: Tue May 27, 2014 10:24 am
by sreinhardt
Can you run and return the full output please:

Code: Select all

/usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg

Re: Upgrade to Nagios 2014 failed

Posted: Wed May 28, 2014 2:33 am
by RIDS_I2MP
Below is the output.

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...
Warning: use_embedded_perl_implicitly is deprecated and will be removed.
Warning: sleep_time is deprecated and will be removed.
Warning: p1_file is deprecated and will be removed.
Warning: external_command_buffer_slots is deprecated and will be removed. All commands are always processed upon arrival
Warning: enable_embedded_perl is deprecated and will be removed.
Warning: command_check_interval is deprecated and will be removed. Commands are always handled on arrival
Read main config file okay...
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.

Re: Upgrade to Nagios 2014 failed

Posted: Wed May 28, 2014 11:37 am
by lmiltchev
Go to the CCM->Tools->Write Config Files->Click on "Write" and "Verify" and show us the output after each click in code wraps.

Also, run the following command and show us the output:

Code: Select all

/usr/local/nagios/bin/ndo2db | head -2

Re: Upgrade to Nagios 2014 failed

Posted: Thu May 29, 2014 2:39 am
by RIDS_I2MP
Please find the requested details below.


Write Configuration Files
---------------------------------
Write host configurations ...
Host configuration files successfully written!

Write service configurations ...
Service configuration files successfully written!

Configuration file: hostgroups.cfg successfully written!
Configuration file: servicegroups.cfg successfully written!
Configuration file: hosttemplates.cfg successfully written!
Configuration file: servicetemplates.cfg successfully written!
Configuration file: timeperiods.cfg successfully written!
Configuration file: commands.cfg successfully written!
Configuration file: contacts.cfg successfully written!
Configuration file: contactgroups.cfg successfully written!
Configuration file: contacttemplates.cfg successfully written!
Configuration file: servicedependencies.cfg successfully written!
Configuration file: hostdependencies.cfg successfully written!
Configuration file: serviceescalations.cfg successfully written!
Configuration file: hostescalations.cfg successfully written!
Configuration file: serviceextinfo.cfg successfully written!
Configuration file: hostextinfo.cfg successfully written!

-----------------------------------------------------------------

Verify Congifuration Files

-----------------------------------------------------------------

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...
Warning: use_embedded_perl_implicitly is deprecated and will be removed.
Warning: sleep_time is deprecated and will be removed.
Warning: p1_file is deprecated and will be removed.
Warning: external_command_buffer_slots is deprecated and will be removed. All commands are always processed upon arrival
Warning: enable_embedded_perl is deprecated and will be removed.
Warning: command_check_interval is deprecated and will be removed. Commands are always handled on arrival
Read main config file okay...
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.


-------------------------------------------------------------------------

/usr/local/nagios/bin/ndo2db | head -2 - Output

-------------------------------------------------------------------------


[root@serv1 nagiosxi]# /usr/local/nagios/bin/ndo2db | head -2

NDO2DB 2.0.0
[root@srv1 nagiosxi]#

Re: Upgrade to Nagios 2014 failed

Posted: Thu May 29, 2014 10:36 am
by sreinhardt
Looks like your nagios.cfg has some invalid definitions or another . Could you post the nagios.cfg please?

Re: Upgrade to Nagios 2014 failed

Posted: Fri May 30, 2014 5:03 am
by RIDS_I2MP
Attached the Nagios.cfg file.

Re: Upgrade to Nagios 2014 failed

Posted: Fri May 30, 2014 2:05 pm
by abrist
First of all, if you have not updated mod_gearman for core 4, you should comment out the line:

Code: Select all

broker_module=/usr/lib64/mod_gearman/mod_gearman.o config=/etc/mod_gearman/mod_gearman_neb.conf eventhandler=no
And stop the gearman services:

Code: Select all

service gearmand stop
service mod_gearman_worker stop
Now run a verify and post the output:

Code: Select all

/usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg

Re: Upgrade to Nagios 2014 failed

Posted: Mon Jun 02, 2014 6:35 am
by RIDS_I2MP
As specified we have done but still the service is failing to start.

[root@xxxx etc]# service gearmand status
gearmand is stopped
[root@xxx etc]# service mod_gearman_worker status
mod_gearman_worker is not running
[root@xxx etc]# /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...
Warning: use_embedded_perl_implicitly is deprecated and will be removed.
Warning: sleep_time is deprecated and will be removed.
Warning: p1_file is deprecated and will be removed.
Warning: external_command_buffer_slots is deprecated and will be removed. All commands are always processed upon arrival
Warning: enable_embedded_perl is deprecated and will be removed.
Warning: command_check_interval is deprecated and will be removed. Commands are always handled on arrival
Read main config file okay...
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.