We have a Nagios XI license, but it wouldn't let me post to the customer support forum for some reason. We're getting the following error when saving changes via Apply Configuration:
Line 375 of servicetemplates.cfg is the last line of the file (a comment). 'Verify Files' generates the following output:An error occurred while attempting to apply your configuration to Nagios Core. Monitoring engine configuration files have been rolled back to their last known good checkpoint.
Error: Template '' specified in service definition could not be not found (config file '/usr/local/nagios/etc/servicetemplates.cfg', starting on line 375)
Write Configs generates the following output:Nagios Core 4.4.3
Copyright (c) 2009-present Nagios Core Development Team and Community Contributors
Copyright (c) 1999-2009 Ethan Galstad
Last Modified: 2019-01-15
License: GPL
Website: https://www.nagios.org
Reading configuration data...
Read main config file okay...
Read object config files okay...
Running pre-flight check on configuration data...
Checking objects...
Checked 690 services.
Warning: Host 'DNS1' has no default contacts or contactgroups defined!
Warning: Host 'DNS2' has no default contacts or contactgroups defined!
<removed a few more default contact errors>
Checked 133 hosts.
Checked 12 host groups.
Checked 7 service groups.
Checked 17 contacts.
Checked 5 contact groups.
Checked 145 commands.
Checked 18 time periods.
Checked 0 host escalations.
Checked 0 service escalations.
Checking for circular paths...
Checked 133 hosts
Checked 0 service dependencies
Checked 0 host dependencies
Checked 18 timeperiods
Checking global event handlers...
Checking obsessive compulsive processor commands...
Checking misc settings...
Total Warnings: 14
Total Errors: 0
Things look okay - No serious problems were detected during the pre-flight check
I've tried the Delete Files button and it results in the same error. I'm not sure how to proceed on troubleshooting this because it's not pointing me to an actual service definition template name (and it won't save any changes I make anyway because of the error).Write host configurations ...
Configuration file: <removed>.cfg successfully written!
WARNING! Ghost host config detected! Removing the file cm-nexus.cfg
Host configuration files successfully written!
Write service configurations ...
Configuration file: linux-service.cfg successfully written!
WARNING! Ghost service config detected! Removing the file cm-nexus-bandwidth.cfg
Service configuration files successfully written!
Configuration file: hostgroups.cfg successfully written!
Configuration file: servicegroups.cfg successfully written!
Configuration file: hosttemplates.cfg successfully written!
Configuration file: servicetemplates.cfg successfully written!
Configuration file: timeperiods.cfg successfully written!
Configuration file: commands.cfg successfully written!
Configuration file: contacts.cfg successfully written!
Configuration file: contactgroups.cfg successfully written!
Configuration file: contacttemplates.cfg successfully written!
Configuration file: servicedependencies.cfg successfully written!
Configuration file: hostdependencies.cfg successfully written!
Configuration file: serviceescalations.cfg successfully written!
Configuration file: hostescalations.cfg successfully written!
Configuration file: serviceextinfo.cfg successfully written!
Configuration file: hostextinfo.cfg successfully written!
Thanks,
Jordan