Re: New hosts not showing up in web interface
Posted: Thu Nov 29, 2012 5:42 am
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:
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!
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!
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!