I have to add some host…
So i added it by doing a copy of another host definition and editing some entries, then i restarted both nagios and httpd services.
Nagios started to monitor the new hosts (i’m sure of this, because if i disconnect one of the new hosts, Nagios email me a “host down alert”), but the web interface don’t show the new hosts.
It seems it show only the host i have configured the first time, not the host added later.
you probably have more than one instance of nagios running.
stop nagios, wait a minute, “ps -ef | grep nagios” kill the resulting processes, start nagios again.
check the contact groups defined for the new hosts… possibly you missed this and so it doesn’t show up…
but thinking of it you wouldn’t get notified… or are you using different groups? worth a check.
The problem was that the user nagios (nagios daemon run as nagios) cannot open the file /usr/local/nagios/var/object.cache for write, because the owner was root instead of nagios.