Error: Service has no hosts and/or service_description
Posted: Thu Jul 20, 2023 12:21 am
I am using Nagios Core 4.1.1 & Nconf to monitor our infrastructure. I can remove a host from nconf. But after removing host and running Generate Nagios Config gives following error. Host is still appearing on Nagios Core.
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 '/var/www/nconf/temp/dc1ni_collector/advanced_services.cfg', starting on line 192)
Error processing object config files!
Line no points to this.
define service {
service_description Oracle - Connection
check_command check_oracle_connection!--connect IRIS
check_period 24x7
notification_period 24x7
hostgroup_name Databases - Oracle
servicegroups Oracle Services
contact_groups +admins,Imaging.Application Support
use service-template_05-min
}
Why can't i remove hosts from Nagios Core?
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 '/var/www/nconf/temp/dc1ni_collector/advanced_services.cfg', starting on line 192)
Error processing object config files!
Line no points to this.
define service {
service_description Oracle - Connection
check_command check_oracle_connection!--connect IRIS
check_period 24x7
notification_period 24x7
hostgroup_name Databases - Oracle
servicegroups Oracle Services
contact_groups +admins,Imaging.Application Support
use service-template_05-min
}
Why can't i remove hosts from Nagios Core?