Icinga-Web – Configuration Changes Not Updating

icingamonitoring

So I've just installed Icinga and Icinga-Web. And everything looked ok when first inspecting the UI's on http://[server]/icinga/ and http://[server]/icinga-web/

I went on and added some new hosts, services, commands, etc. and reloaded the icinga service, without problems. Then I flushed the icinga-web cache and restarted the apache2 service, again no problems.

After reloading the configuration, all of the new hosts and services shows up just fine, in the old icinga UI, and the checks are running perfectly, well almost 😉 (see below).

Old Icinga UI Status

However, in the new icinga-web interface it's a completely different story. The icinga-web UI still shows the hosts from the initial configuration (a single 'localhost' host with 8 services). The UI also shows the 'default' instance as being 'down' in the header status, and that 'the data is X minutes old' (see below).

New Icinga-Web UI Status

I've tried retracing my steps, by re-reading the icinga-web installation guide, but I can't figure out what I've done wrong or how to correct it. I've also tried to fiddle with the access.xml and databases.xml configuration files.

What am I doing wrong and how do I fix it?

Best Answer

In my case, there were two changes that needed to be made.

1) /etc/default/icinga needs to be configured so that IDO2DB will run:

# start ido2db daemon (no/yes)
IDO2DB=yes

2) The IDO module needs to be defined in /etc/icinga/modules/

/etc/icinga/modules/idoutils.cfg:

define module {
    module_name    ido_mod
    path           /usr/lib/icinga/idomod.so
    module_type    neb
    args           config_file=/etc/icinga/idomod.cfg
    }

The previous config file will, of course, need to match how your system is configured. The above is being used on an Ubuntu 12.10 server.