Page 1 of 1

Error when Applying Configuration

Posted: Mon Jun 09, 2014 2:47 pm
by tgfde
Hello,

I'm getting the messages below when applying configuration after upgrading to 2014R1.1.

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...
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: Service has no hosts and/or service_description (config file '/usr/local/nagios/etc/services/http-linux.cfg', starting on line 14)
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.

Please note that I also received the message below after the upgrade.

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

Thanks in advance.

Re: Error when Applying Configuration

Posted: Mon Jun 09, 2014 2:50 pm
by tmcdonald
tgfde wrote:Error: Service has no hosts and/or service_description (config file '/usr/local/nagios/etc/services/http-linux.cfg', starting on line 14)
It looks like your http-linux service has no service description. If this is the case you may have several services with this same issue.

Re: Error when Applying Configuration

Posted: Wed Jun 11, 2014 8:59 am
by tgfde
Please advise on how I could fix this issue. I was not receiving this error prior to my upgrade.

Thanks in advance.

Re: Error when Applying Configuration

Posted: Wed Jun 11, 2014 10:54 am
by abrist
You need to edit the service: "http-linux".
Check to make sure it has a service description and that it is applied to at least 1 host or hostgroup.

Re: Error when Applying Configuration

Posted: Thu Jun 12, 2014 10:34 am
by tgfde
Thank you!