Issue excluding hostgroup member from service
Posted: Fri Feb 26, 2016 6:34 pm
Hey there,
I'm having an issue excluding a hostgroup member from a service. I have the hostgroup and member of the hostgroup configured as follows:
I have a service configured for that hostgroup as follows:
Up to this point everything is working as expected. I then attempted to exclude a specific member host of that hostgroup by adding the following to the service definition:
Upon which I received the following error in the pre-flight check.
Error: 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?
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?