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@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.
Nagios 2014R1.1 upgrade errors w/ verification
-
btmikkelsen
- Posts: 38
- Joined: Wed Feb 23, 2011 10:29 am
Nagios 2014R1.1 upgrade errors w/ verification
You do not have the required permissions to view the files attached to this post.
- Box293
- Too Basu
- Posts: 5126
- Joined: Sun Feb 07, 2010 10:55 pm
- Location: Deniliquin, Australia
- Contact:
Re: Nagios 2014R1.1 upgrade errors w/ verification
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
Then run this command again and see if the error occurs:
Let us know how that goes.
As a test, you could remark out the following line in nagios.cfg
Code: Select all
cfg_file=/usr/local/nagios/etc/viad_servicedependencies.cfgCode: Select all
/usr/local/nagios/bin/nagios -vvv /usr/local/nagios/etc/nagios.cfg | moreAs of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
-
btmikkelsen
- Posts: 38
- Joined: Wed Feb 23, 2011 10:29 am
Re: Nagios 2014R1.1 upgrade errors w/ verification
Same error with that line quoted out.
-
btmikkelsen
- Posts: 38
- Joined: Wed Feb 23, 2011 10:29 am
Re: Nagios 2014R1.1 upgrade errors w/ verification
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
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
You are missing the "host_name" directive, which is required...
http://nagios.sourceforge.net/docs/nagi ... escalation
http://nagios.sourceforge.net/docs/nagi ... escalation
Be sure to check out our Knowledgebase for helpful articles and solutions!
-
btmikkelsen
- Posts: 38
- Joined: Wed Feb 23, 2011 10:29 am
Re: Nagios 2014R1.1 upgrade errors w/ verification
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
Is it safe to lock this thread up?
Former Nagios employee