Renaming hostgroups with put commands

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
optionstechnology
Posts: 234
Joined: Thu Nov 17, 2016 11:26 am

Renaming hostgroups with put commands

Post 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
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Renaming hostgroups with put commands

Post 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!
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked