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 :
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
Could not read objet configuration data
Could not read objet configuration data
Last edited by dwhitfield on Mon Jan 16, 2017 10:21 am, edited 1 time in total.
Reason: marking with green check mark
Reason: marking with green check mark
-
- Former Nagios Staff
- Posts: 4583
- Joined: Wed Sep 21, 2016 10:29 am
- Location: NoLo, Minneapolis, MN
- Contact:
Re: Could not read objet configuration data
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
Hi dwhitfield,
Thanks for your reply !
This is a result of my ls -la /usr/local/nagios/var
I will be changed "rw,spool, .. and ." acces rights for nagios:nagios.
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
Re: Could not read objet configuration data
Did changing the permissions of the aforementioned files fix the issue?
Former Nagios employee
https://www.mcapra.com/
https://www.mcapra.com/
Re: Could not read objet configuration data
Hi,
Yes this modification fixed this problem !!!
But i have a Duplicate problems, i create a now post for this..
Thanks a lot !!
Yes this modification fixed this problem !!!
But i have a Duplicate problems, i create a now post for this..
Thanks a lot !!
-
- Former Nagios Staff
- Posts: 4583
- Joined: Wed Sep 21, 2016 10:29 am
- Location: NoLo, Minneapolis, MN
- Contact:
Re: Could not read objet configuration data
Thanks for opening a new thread for a new topic!FabienA wrote: But i have a Duplicate problems, i create a now post for this..
I'm going to go ahead and lock this one up.