After upgrading to Nagios 5.3.x, I am unable to successfully apply any configurations when I add/change services. No services work - no matter what I do. I have followed several threads and attempted to fix the problem. I am now down to having deactivated ALL of the services in Nagios - then I get no services defined error message.
I have also gone through all the steps of Config File Management (delete files, then write files, then verify files) and have gotten it to successfully verify. However, whenever I go to add a service - JUST ONE SERVICE, I get the error message: "Error: Service has no hosts and/or service_description..." If I remove the LAST service, I get an error saying there are no services configured.
Here is the full text of the message:
Code: Select all
Error: Service has no hosts and/or service_description (config file '/usr/local/nagios/etc/services/Censdcprd1.cfg', starting on line 16)
Nagios Core 4.1.1
Copyright (c) 2009-present Nagios Core Development Team and Community Contributors
Copyright (c) 1999-2009 Ethan Galstad
Last Modified: 08-19-2015
License: GPL
Website: https://www.nagios.org
Reading configuration data...
Read main config file okay...
Error: Service has no hosts and/or service_description (config file '/usr/local/nagios/etc/services/Censdcprd1.cfg', starting on line 16)
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.