sni / Thruk

Thruk is a multibackend monitoring webinterface for Naemon, Nagios, Icinga and Shinken using the Livestatus API.
http://www.thruk.org
Other
408 stars 148 forks source link

Config tool: multiple inheritance issue (cumulative hostgroup assignment) #630

Closed simonmeggle closed 8 years ago

simonmeggle commented 8 years ago

Given then following templates:

define host {
  name                           tpl_host_netzwerk_switch
  use                            tpl_host_netzwerk
  hostgroups                     +hg_netzwerk_switch
  register                       0
}
define host {
  name                           tpl_host_netzwerk
  hostgroups                     +hg_netzwerk
  register                       0
}

define host {
  name                           tpl_host_basis_site
  hostgroups                     +hg_location_central,hg_site_central
  register                       0
}

Create a host with this configuration:

define host {
  host_name                      sw_example
  address                        192.168.50.3
  use                            tpl_host_basis_site,tpl_host_netzwerk_switch
}

After reloading the config, livestatus will report the following hostgroups for _swexample:

As expected, the plus sign cumulated the hostgroups from both templates.
The "computed" tab in Thruk config tool instead shows only the templates

-> The "plus" signs seem to be ignored in this case.

sni commented 8 years ago

should be fixed now