OK, with no pending changes this is the output of the verification.
Code: Select all
Nagios Core 4.2.4
Copyright (c) 2009-present Nagios Core Development Team and Community Contributors
Copyright (c) 1999-2009 Ethan Galstad
Last Modified: 12-07-2016
License: GPL
Website: https://www.nagios.org
Reading configuration data...
Read main config file okay...
Warning: Duplicate definition found for service 'Vlan1 Status' on host 'USS-SWT-10' (config file '/usr/local/nagios/etc/services/10.20.254.11.cfg', starting on line 111)
Warning: Duplicate definition found for service 'Vlan1 Bandwidth' on host 'USS-SWT-10' (config file '/usr/local/nagios/etc/services/10.20.254.11.cfg', starting on line 95)
Warning: Duplicate definition found for service 'StackPort2 Status' on host 'USS-SWT-10' (config file '/usr/local/nagios/etc/services/10.20.254.11.cfg', starting on line 79)
Warning: Duplicate definition found for service 'StackPort2 Bandwidth' on host 'USS-SWT-10' (config file '/usr/local/nagios/etc/services/10.20.254.11.cfg', starting on line 63)
Warning: Duplicate definition found for service 'Ping' on host 'USS-SWT-10' (config file '/usr/local/nagios/etc/services/10.20.254.11.cfg', starting on line 48)
Read object config files okay...
Running pre-flight check on configuration data...
Checking objects...
Checked 1933 services.
Checked 243 hosts.
Checked 31 host groups.
Checked 0 service groups.
Checked 9 contacts.
Checked 3 contact groups.
Checked 138 commands.
Checked 16 time periods.
Checked 0 host escalations.
Checked 0 service escalations.
Checking for circular paths...
Checked 243 hosts
Checked 0 service dependencies
Checked 0 host dependencies
Checked 16 timeperiods
Checking global event handlers...
Checking obsessive compulsive processor commands...
Checking misc settings...
Total Warnings: 0
Total Errors: 0
Things look okay - No serious problems were detected during the pre-flight check
When using the bulk modifications tool to add the service to only one host I got:
Configuration verification failed.
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.
I'm not sure if it makes a difference, but the service I'm trying to add currently does not have a host assigned to it, only a hostgroup. I'm trying to get from a few services with hostgroups assigned to every server having the service tied to one template so that it's easier to make exceptions with services as I need to.
With the more info showing the same error as before:
Error: Service has no hosts and/or service_description (config file '/usr/local/nagios/etc/services/uhqserver-10.cfg', starting on line 16)