Error when Applying Configuration

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
tgfde
Posts: 233
Joined: Thu May 12, 2011 7:55 am

Error when Applying Configuration

Post 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.
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: Error when Applying Configuration

Post 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.
Former Nagios employee
tgfde
Posts: 233
Joined: Thu May 12, 2011 7:55 am

Re: Error when Applying Configuration

Post by tgfde »

Please advise on how I could fix this issue. I was not receiving this error prior to my upgrade.

Thanks in advance.
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Error when Applying Configuration

Post 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.
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
tgfde
Posts: 233
Joined: Thu May 12, 2011 7:55 am

Re: Error when Applying Configuration

Post by tgfde »

Thank you!
Locked