Page 1 of 1

Renaming hostgroups with put commands

Posted: Tue May 26, 2020 11:05 am
by optionstechnology
When I rename hostgroups with the "put" command it does successfully change the name

However, even though the hosts are showing the new hostgroup name when I go in to edit them it wont let me apply the config until I have gone into each host that is a member and hit save - even if I don't make any changes

The only way I could get it to apply in bulk is by using the config management to delete the local config and write them back again

Re: Renaming hostgroups with put commands

Posted: Tue May 26, 2020 12:01 pm
by lmiltchev
I was able to recreate the issue in house, and filed an internal bug report (task_id=15156). It seems like the issue occurs when a hostgroup is added to a host.

Example:

Code: Select all

define host {
    host_name       somehost
    ...
    hostgroups      somehostgroup    
}
I haven't been able to recreate the issue when a host is added (as a member) to a hostgroup.

Example:

Code: Select all

define hostgroup {
    hostgroup_name		somehostgroup
    alias				   somehostgroup
    members				 somehost
}

I haven't heard back from our developers yet, but expect the issue to be fixed in the next release of Nagios XI. Thanks!