Hostgroups wont dissaprear in icingaweb

Hi everyone

We removed all configs presented in icinga2 director about a customer. All hostgroups, hosts, zones and endpoints.
Now the big problem is, the hostgroup still exists when searching in icingaweb.

I checked both master nodes and no external definition is mentioning this object.
Also i checked via icinga2 object listand while first there was a object that had a supposed definition in /etc/icinga2/conf.d/groups/, that was false because the file did not include said hostgroup and after a icinga2 daemon -C --dump-objects it was no longer showing up. So now both masters know nothing about this object, the director table ‘icinga_hostgroup’ in mysql has also no mention of this object.

What do i do now? How can i get rid of this? Its also not a one-time thing as we have several hostgroups that are not removed.

  • Icinga Web 2 version / Used modules and their versions
  • Web browser used
    Several - Chrome, Firefox
  • Icinga 2 version used (icinga2 --version)
    r2.14.5-1
  • PHP version used (php --version)
    PHP 8.2.28 (fpm-fcgi)
  • Server operating system and version
    Debian 12

did you deploy in icinga director and was this sucessful?

Yes, in fact many deployments since then and all were green.

THIS COMES WITHOUT ANY GUARANTEE!
MAKE A OF THE MACHINE BACKUP FIRST!

you could delete the icinga director api deployment folder:

/var/lib/icinga2/api/

and deploy again in director:
Deployments->render config-> There are no pending changes. Deploy anyway

You can also do a “unix find in file content” magic and search the /etc/icinga2 directory, maybe your hostgroup was created manually.