Page 1 of 1

Nagios 2014R1.1 upgrade errors w/ verification

Posted: Mon Jun 23, 2014 6:11 pm
by btmikkelsen
Having trouble applying config after upgrade. there were about 20 services that lost their host/hostgroup associations - I fixed those. The current status is it is not applying, but it is not giving any reason why.
I've included the ndo2db | head -2 as you have asked this of others with the same issue.
I've also attached the nagios.cfg
nagios.cfg

[nagios@nanm21 etc]$ /usr/local/nagios/bin/ndo2db | head -2

NDO2DB 2.0.0
[nagios@nanm21 etc]$ /usr/local/nagios/bin/nagios -vvv /usr/local/nagios/etc/nagios.cfg | more

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

Website: http://www.nagios.org
Reading configuration data...
Read main config file okay...
Processing object config directory '/usr/local/nagios/etc/static'...
Processing object config file '/usr/local/nagios/etc/static/xitemplates.cfg'...
Processing object config file '/usr/local/nagios/etc/static/xitest.cfg'...
Processing object config file '/usr/local/nagios/etc/static/xiobjects.cfg'...
Processing object config file '/usr/local/nagios/etc/contacttemplates.cfg'...
Processing object config file '/usr/local/nagios/etc/contactgroups.cfg'...
Processing object config file '/usr/local/nagios/etc/contacts.cfg'...
Processing object config file '/usr/local/nagios/etc/timeperiods.cfg'...
Processing object config file '/usr/local/nagios/etc/commands.cfg'...
Processing object config file '/usr/local/nagios/etc/hostgroups.cfg'...
Processing object config file '/usr/local/nagios/etc/servicegroups.cfg'...
Processing object config file '/usr/local/nagios/etc/hosttemplates.cfg'...
Processing object config file '/usr/local/nagios/etc/servicetemplates.cfg'...
Processing object config file '/usr/local/nagios/etc/servicedependencies.cfg'...
Processing object config file '/usr/local/nagios/etc/serviceescalations.cfg'...
Processing object config file '/usr/local/nagios/etc/hostdependencies.cfg'...
Processing object config file '/usr/local/nagios/etc/hostescalations.cfg'...
Processing object config file '/usr/local/nagios/etc/hostextinfo.cfg'...
Processing object config file '/usr/local/nagios/etc/serviceextinfo.cfg'...
Processing object config directory '/usr/local/nagios/etc/hosts'...
Processing object config file '/usr/local/nagios/etc/viad_servicedependencies.cfg'...
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: Nagios 2014R1.1 upgrade errors w/ verification

Posted: Mon Jun 23, 2014 7:26 pm
by Box293
Have a look at the object config file '/usr/local/nagios/etc/viad_servicedependencies.cfg' as this is the last file it processed before the verification failed.

As a test, you could remark out the following line in nagios.cfg

Code: Select all

cfg_file=/usr/local/nagios/etc/viad_servicedependencies.cfg
Then run this command again and see if the error occurs:

Code: Select all

/usr/local/nagios/bin/nagios -vvv /usr/local/nagios/etc/nagios.cfg | more
Let us know how that goes.

Re: Nagios 2014R1.1 upgrade errors w/ verification

Posted: Tue Jun 24, 2014 9:17 am
by btmikkelsen
Same error with that line quoted out.

Re: Nagios 2014R1.1 upgrade errors w/ verification

Posted: Tue Jun 24, 2014 9:46 am
by btmikkelsen
I took all the config files out, line by line - the problem is with serviceescalations. We have this in our service escalations:
define serviceescalation {
service_description Avaya CM Alarm,PROD:CORE:Main Web Page
contacts Escalation DL
first_notification 1
last_notification 0
notification_interval 15
escalation_period 24x7
escalation_options c,r,
}

define serviceescalation {
service_description Avaya CM Alarm,PROD:TELECOM:Meeting Exchange,PROD:TELECOM:SIP
contacts network
first_notification 1
last_notification 0
notification_interval 15
escalation_period 24x7
escalation_options c,r,
}


I've inactivated these for now, but would like to know what is the problem with them? So - we are working again post-upgrade with these inactivated

Re: Nagios 2014R1.1 upgrade errors w/ verification

Posted: Tue Jun 24, 2014 1:46 pm
by lmiltchev
You are missing the "host_name" directive, which is required...

http://nagios.sourceforge.net/docs/nagi ... escalation

Re: Nagios 2014R1.1 upgrade errors w/ verification

Posted: Thu Jun 26, 2014 7:01 pm
by btmikkelsen
Thank you. that makes sense. Just like some of the services lost their host_group and I had to add them back. Thank you!

Re: Nagios 2014R1.1 upgrade errors w/ verification

Posted: Fri Jun 27, 2014 9:02 am
by tmcdonald
Is it safe to lock this thread up?