Delete Files and Write Config both worked successfully without any errors. When clicking verify files we get the following output:
Nagios Core 4.4.13
Copyright (c) 2009-present Nagios Core Development Team and Community Contributors
Copyright (c) 1999-2009 Ethan Galstad
Last Modified: 2023-06-01
License: GPL
Website:
https://www.nagios.org
Reading configuration data...
Read main config file okay...
Warning: Duplicate definition found for service 'BMC Client Management Agent Service Status' on host 'OSC-ADCONNECT' (config file '/usr/local/nagios/etc/services/OSC-SPWF01.cfg', starting on line 16)
Warning: Duplicate definition found for service 'Memory for VMHost' on host 'OSC-ESXi1' (config file '/usr/local/nagios/etc/services/OSC-ESXi1.cfg', starting on line 70)
Warning: Duplicate definition found for service 'STAS Service Status' on host 'WPDC02.mhcp.on.ca' (config file '/usr/local/nagios/etc/services/WPDC02.mhcp.on.ca.cfg', starting on line 128)
Warning: Duplicate definition found for service 'BMC Client Management Agent Service Status' on host 'OSC-SQL03A' (config file '/usr/local/nagios/etc/services/OSC-SPWF01.cfg', starting on line 16)
Warning: Duplicate definition found for service 'BMC Client Management Agent Service Status' on host 'OSC-SP02A' (config file '/usr/local/nagios/etc/services/OSC-SPWF01.cfg', starting on line 16)
Warning: Duplicate definition found for service 'BMC Client Management Agent Service Status' on host 'OSC-SP01A' (config file '/usr/local/nagios/etc/services/OSC-SPWF01.cfg', starting on line 16)
Warning: Duplicate definition found for service 'BMC Client Management Agent Service Status' on host 'OSC-MAIL3' (config file '/usr/local/nagios/etc/services/OSC-SPWF01.cfg', starting on line 16)
Warning: Duplicate definition found for service 'BMC Client Management Agent Service Status' on host 'OSC-MAIL2' (config file '/usr/local/nagios/etc/services/OSC-SPWF01.cfg', starting on line 16)
Warning: Duplicate definition found for service 'BMC Client Management Agent Service Status' on host 'OSC-MAIL1' (config file '/usr/local/nagios/etc/services/OSC-SPWF01.cfg', starting on line 16)
Warning: Duplicate definition found for service 'BMC Client Management Agent Service Status' on host 'OSC-DENT01' (config file '/usr/local/nagios/etc/services/OSC-SPWF01.cfg', starting on line 16)
Read object config files okay...
Running pre-flight check on configuration data...
Checking objects...
Warning: Service 'CBORD FSI Service Status' on host 'dietarytestsvr.mhcp.on.ca' has no default contacts or contactgroups defined!
Warning: Service 'CBORD NSI Service Status' on host 'dietarytestsvr.mhcp.on.ca' has no default contacts or contactgroups defined!
Warning: Service 'CPU Usage' on host 'dietarytestsvr.mhcp.on.ca' has no default contacts or contactgroups defined!
Warning: Service 'Disk Usage on C:/' on host 'dietarytestsvr.mhcp.on.ca' has no default contacts or contactgroups defined!
Warning: Service 'Ethernet0 Bandwidth - Inbound' on host 'dietarytestsvr.mhcp.on.ca' has no default contacts or contactgroups defined!
Warning: Service 'Ethernet0 Bandwidth - Outbound' on host 'dietarytestsvr.mhcp.on.ca' has no default contacts or contactgroups defined!
Warning: Service 'Memory Usage' on host 'dietarytestsvr.mhcp.on.ca' has no default contacts or contactgroups defined!
Checked 4632 services.
Warning: Host 'Atrium Storeonce' has no default contacts or contactgroups defined!
Warning: Host 'CELHC-FS02' has no default contacts or contactgroups defined!
Warning: Host 'dietarytestsvr.mhcp.on.ca' has no default contacts or contactgroups defined!
Checked 484 hosts.
Checked 30 host groups.
Checked 0 service groups.
Checked 33 contacts.
Checked 10 contact groups.
Checked 400 commands.
Checked 40 time periods.
Checked 0 host escalations.
Checked 0 service escalations.
Checking for circular paths...
Checked 484 hosts
Checked 0 service dependencies
Checked 0 host dependencies
Checked 40 timeperiods
Checking global event handlers...
Checking obsessive compulsive processor commands...
Checking misc settings...
Total Warnings: 10
Total Errors: 0
Things look okay - No serious problems were detected during the pre-flight check
We then restarted Nagios core config and then Applied the configuration and it seems we get the same result with the ghost services which are not showing up in CCM.