Add more Host Groups Nagios

An open discussion forum for obtaining help with Nagios Core. Nagios Core users of all experience levels are welcome here. Subforum have been created for the discussion of Nagios Core and Nagios Plugin development.

NOTE: The SourceForge.net mailing lists have been deprecated in favor of this forum in order to expedite support and provide additional features not available on the old mailing list.

Re: Add more Host Groups Nagios

Postby scottwilkerson » Wed Sep 13, 2017 8:45 am

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
}
User avatar
scottwilkerson
CTO
 
Posts: 7536
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises

Re: Add more Host Groups Nagios

Postby DiegoAnjos » Thu Sep 14, 2017 2:52 pm

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!
DiegoAnjos
 
Posts: 47
Joined: Thu Feb 14, 2013 9:32 am

Re: Add more Host Groups Nagios

Postby kyang » Thu Sep 14, 2017 4:35 pm

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.
Be sure to check out our Knowledgebase for helpful articles and solutions!
User avatar
kyang
 
Posts: 64
Joined: Tue Jul 25, 2017 3:35 pm

Re: Add more Host Groups Nagios

Postby michaelpn » Tue Sep 19, 2017 5:24 am

hi,
do I get an answer soon:) ?

Sorry I solved it myself. Many thanks :) It helped me.
Michael Pierre
Forenede Gruppeliv
2500 Valby
Copenhagen
michaelpn
 
Posts: 10
Joined: Fri Jul 14, 2017 12:12 am

Previous

Return to Nagios Core

Who is online

Users browsing this forum: mikezock and 21 guests