Updating host IP address by API reflected at Icinga web but not at host file

Hi All,

At our Icinga2 setup updating host IP address by API reflects at the Icinga2 Web, however, the host configuration file is not updated with the IP address. May I know is there anywhere else where Icinga keep the updated IP address? It is a little bit strange that the device got different IP at backend config file and at the web.

By running icinga2 object list --type host --name HOSTNAME, I get the old IP not the updated one.

Update:

Hi All,

I’ve found the update at file /var/lib/icinga2/modified-attributes.conf.
I guess Icinga should load that file also if I restart the service or the server? Can anyone please confirm me?

Update:

I’ve tested this and all good. Icinga load the file /var/lib/icinga2/modified-attributes.conf at service restart, server restart. Thanks.

That command reads a file that’s only updated when either reloading the daemon or running icinga2 daemon -C manually. So changes done using the API are not reflected in the output until either happens.

Thanks Julian. Great information.