Not sure if that’s a problem with Icinga Web 2 or Icinga Director…
Problem
I have deleted two hosts (and with it their respective host checks), but both are still viewable on the overview and the problems page. Viewing the diff of the Director’s deployment gives the info that two host objects and two service objects were removed from the following config files:
zones.d/myhostname.example.com/hosts.conf
zones.d/myhostname.example.com/services.conf
How can I get rid of the unnecessary checks in the overview/problems pages?
to be sure: where and how do you deleted the hosts? In the director or from the config files. And from which files/menues? Are these deletes hosts, which should be monitored or are these hosts endpoints from the icinga cluster config?
if the changes are not done, you have to deploy the new config - as @dbodky already noted.
After the deployment the director writes new config files under /var/lib/icinga2/api/… After a reload of icinga with the new config (should happen automatically) you’ll see the changes
After the deployment the director writes new config files under /var/lib/icinga2/api/… After a reload of icinga with the new config (should happen automatically) you’ll see the changes
That’s very weird…
The file hosts.conf in /var/lib/icinga2/api/zones/myhostname.example.com/director
has not been changed.
How the other sub directories look like? I’m not 100% sure, but I think the director deploy into /var/lib/icinga2/api/packages/director. Here there should be two stage directories. In the file “active-stage” is written which one is active.
There are 2 stage directories (hash as name) and the modification date of those directories correspond to my 2 times I deployed the changes. The content of active-state is the name of the most recent deployment.
So this seems to be fine. But somehow Icinga Web did not notice the change. How can I finish the deployment?