Page 1 of 1

New hosts doesn't appear in hostgroups.cfg

Posted: Mon Sep 02, 2013 14:48
by megabitmg
Hello, i found a bug in config generation.

If you change all hosts attribute "monitored by" that are assigned to one hostgroup, then the hostgroup is written to hostgroups.cfg and all new added hostgroups are missing!

Here an example:

Host1
monitored by: ""
Host2
monitored by: ""
Host3
monitored by: ""

Hostgroup1
members: Host1, Host2, Host3

hostgroups.cfg
define hostgroup {
hostgroup_name Hostgroup1
alias Hostgroup1
}

After that, no more new Hostgroups can be added! If you remove the members from Hostgroup, or set the Hosts to monitored by "Icinga" (that's the collectors name) then the hostgroups.cfg is generated correctly!