[SOLVED] New hosts not showing up in web interface

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Steffan
Posts: 13
Joined: Tue Jun 26, 2012 10:13 am

Re: New hosts not showing up in web interface

Post by Steffan »

i found the problem! :)

I was actually what i thought, i just had to find it:

I looked into the nagios log (<nagios folder>/var/nagios.log) as i was restarting the nagios service and i got the following line:

Code: Select all

[1354184763] Warning: Could not open object cache file '/usr/local/nagios/var/objects.cache' for writing!
ANd i took a look on the permissions and owner of this file which was root:root and only the owner had permission to write the file, everyone else had read rights..
Therefore the nagios process was not able to update the file with the new servers and thereby the web interface never got to see them!!
I fixed it by making nagios:nagios the owner of this file, and everything is working perfectly now!

Again, thank you so much for your help and that you took your time to read my long post's.. i am writing the solution hoping that someone else will find it if they have the same problem!
agriffin
Posts: 876
Joined: Mon May 09, 2011 9:36 am

Re: [SOLVED] New hosts not showing up in web interface

Post by agriffin »

Thanks for sharing the solution, glad you got it figured out!
Locked