Page 1 of 1

Could not read objet configuration data

Posted: Thu Jan 12, 2017 9:12 am
by FabienA
Hello everybody,

I just finished installing Nagios Core 4.2.4 on Centos 7 to follow this process:
https://assets.nagios.com/downloads/nag ... entos7.pdf

When i check my configuration no errors are detected..the nagios service is correctly launching and i'm connected on the web interface.

But when i switch tab i have this error :
Image


When i check nagios.log i see this error:
Error: Unable to create temp file '/usr/local/nagios/var/nagios.tmpxxxx' for writing status data : Permission denied

I suspect a permission error..

Thanks a lot

Re: Could not read objet configuration data

Posted: Thu Jan 12, 2017 2:21 pm
by dwhitfield
Can you compare your output of ls -la /usr/local/nagios/var/ to mine? I'm running 4.2.2 on Debian, but that shouldn't matter if you're compiling from source using our instructions (well, the instructions are different, but the final product should be similar)

Code: Select all

ls -la /usr/local/nagios/var/
total 96
drwxrwsr-x 5 nagios nagios  4096 Jan 12 13:18 .
drwxr-sr-x 9 nagios nagios  4096 Nov 30 10:37 ..
drwxrwsr-x 2 nagios nagios  4096 Jan 11 23:59 archives
-rw-r--r-- 1 nagios nagios    34 Jan  9 11:43 nagios.configtest
-rw-r--r-- 1 nagios nagios     4 Jan  9 11:43 nagios.lock
-rw-r--r-- 1 nagios nagios  1909 Jan 12 12:43 nagios.log
-rw-r--r-- 1 nagios nagios 12655 Jan  9 11:43 objects.cache
-rw-r--r-- 1 nagios nagios 12655 Jan  9 11:43 objects.precache
-rw------- 1 nagios nagios 13146 Jan 12 12:43 retention.dat
drwxrwsr-x 2 nagios nagios  4096 Jan  9 11:43 rw
drwxr-sr-x 3 nagios nagios  4096 Nov  3 15:03 spool
-rw-rw-r-- 1 nagios nagios 13578 Jan 12 13:18 status.dat

Re: Could not read objet configuration data

Posted: Fri Jan 13, 2017 3:22 am
by FabienA
Hi dwhitfield,

Thanks for your reply !
This is a result of my ls -la /usr/local/nagios/var

Code: Select all

ls -la /usr/local/nagios/var
total 2176
drwxr-xr-x. 4 root   root       112 12 janv. 11:15 .
drwxr-xr-x. 9 root   root        94 10 janv. 17:25 ..
-rw-r--r--. 1 nagios nagios      34 12 janv. 11:15 nagios.configtest
-rw-r--r--. 1 nagios nagios       5 12 janv. 11:15 nagios.lock
-rw-------. 1 nagios nagios 2218669 13 janv. 09:08 nagios.log
-rw-r--r--. 1 nagios nagios       0 12 janv. 11:15 retention.dat
drwxrwsr-x. 2 nagios nagcmd      41 12 janv. 11:15 rw
drwxr-xr-x. 3 root   root        26 10 janv. 17:29 spool
I will be changed "rw,spool, .. and ." acces rights for nagios:nagios.

Re: Could not read objet configuration data

Posted: Fri Jan 13, 2017 11:33 am
by mcapra
Did changing the permissions of the aforementioned files fix the issue?

Re: Could not read objet configuration data

Posted: Mon Jan 16, 2017 4:24 am
by FabienA
Hi,

Yes this modification fixed this problem !!!
But i have a Duplicate problems, i create a now post for this..

Thanks a lot !!

Re: Could not read objet configuration data

Posted: Mon Jan 16, 2017 10:20 am
by dwhitfield
FabienA wrote: But i have a Duplicate problems, i create a now post for this..
Thanks for opening a new thread for a new topic!

I'm going to go ahead and lock this one up.