I'm having an issue excluding a hostgroup member from a service. I have the hostgroup and member of the hostgroup configured as follows:
Code: Select all
define hostgroup {
hostgroup_name windows-system
alias Windows System
}Code: Select all
define host {
use host-default
host_name dgr-servername
alias DGR-ServerName
address 192.168.1.0
hostgroups windows-system
}Code: Select all
define service {
use service-default
hostgroup_name windows-system
service_description ServiceName
check_command check_snmp_win!"^ServiceName"
}Code: Select all
host_name !dgr-servernameError: Could not find a service matching host name 'dgr-servername' and description 'ServiceName' (config file '/usr/local/nagios/etc/services.d/windows-system.cfg', starting on line 62)
Error: Failed to expand same-host servicedependency services (config file '/usr/local/nagios/etc/services.d/windows-system.cfg', starting at line 62)
Where have I gone wrong in this configuration?