Page 2 of 2

Re: Add more Host Groups Nagios

Posted: Wed Sep 13, 2017 8:45 am
by scottwilkerson
In the hostgroups file WSTEST1 is set as a member of the web-server hostgroup AND in the WSTEST1 host definition you are setting citrix-servers in the hostgroups directive

Code: Select all

define hostgroup{
	hostgroup_name		web-servers		; The name of the hostgroup
	alias			web servers		; Long name of the group
	members			WSTEST1
		}

define host {
  host_name WSTEST1
  use windows-server
  alias WSTEST1
  address 10.xx.xx.x
  hostgroups citrix-servers
  max_check_attempts 3
  check_period 24x7
  check_command check-host-alive
  notification_interval 60
  notification_period 24x7
}

Re: Add more Host Groups Nagios

Posted: Thu Sep 14, 2017 2:52 pm
by DiegoAnjos
WSTEST1 is duplicated:

hostgroups.cfg:

It is set as member of web-servers:

Code: Select all

define hostgroup{
	hostgroup_name	web-servers		; The name of the hostgroup
	alias			        web servers		; Long name of the group
	members			WSTEST1
}
And it on host definition the hostgroup is set as a citrix-servers member:

Code: Select all

define host {
  host_name WSTEST1
  use windows-server
  alias WSTEST1
  address 10.xx.xx.x
  hostgroups citrix-servers
  max_check_attempts 3
  check_period 24x7
  check_command check-host-alive
  notification_interval 60
  notification_period 24x7
}
Remove the hostgroups citrix-servers on host definition.

Hope it helps!

Re: Add more Host Groups Nagios

Posted: Thu Sep 14, 2017 4:35 pm
by kyang
Based on @scottwilkerson and @DiegoAnjos suggested. Check their suggestions in your host.cfg regarding the hostgroups citrix-servers

Let us know if you have any more questions.

Re: Add more Host Groups Nagios

Posted: Tue Sep 19, 2017 5:24 am
by michaelpn
hi,
do I get an answer soon:) ?

Sorry I solved it myself. Many thanks :) It helped me.