For that I would write a script to add hosts which would check the host count
on the available slave sites and assign the new host accordingly.

Currently, I assign the site on the folder level and let the hosts
inherit the setting.

Sent from my iPad

> On Aug 10, 2017, at 4:19 AM, Andrew Wade <> wrote:
> Hello all,
> I’d like to override the behaviour of the host site selection in WATO. The 
> two issues I have with the current behaviour are:
> 1)      I never want a local site. I’d like a random slave site (or the one 
> with the fewest hosts/services). Various people create new hosts and I don’t 
> want to burden them with the logic.
> 2)      If you do not explicitly select the default value (i.e. by clicking 
> the checkbox and selecting a value in the dropdown), the choice is not 
> persisted to the “site” key in the “host_attributes” dictionary in 
> This means if the default changes (e.g. changing the folder’s default site), 
> the hosts are re-assigned to that site.
> Is it even possible to override an existing attribute using the wato plugin 
> system?
> I tried copying the existing SiteAttribute class and defining a new attribute 
> but I could not find a way to pre-select a value such that the site gets set 
> in the “host_attributes” dictionary.
> Thanks.
> _______________________________________________
> checkmk-en mailing list
checkmk-en mailing list

Reply via email to