Error: Cannot open main configuration file '/usr/local/nagios/etc/nagios.cfg' for reading!

Marc Powell marc at ena.com
Thu Jan 24 17:53:57 CET 2008



> -----Original Message-----
> From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users-
> bounces at lists.sourceforge.net] On Behalf Of Scott McCoy
> Sent: Thursday, January 24, 2008 10:41 AM
> To: nagios-users at lists.sourceforge.net
> Subject: [Nagios-users] Error: Cannot open main configuration file
> '/usr/local/nagios/etc/nagios.cfg' for reading!
> 
> When using the Fedora Quickstart, I get to step 7 and type
> /usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg and I
> get the following error
> 
> Error: Cannot open main configuration file
> '/usr/local/nagios/etc/nagios.cfg' for reading!
> 
> I have check the permissions on /usr/local/nagios/etc/nagios.cfg and
> nagios  owner's the file.
> 
> [root at server smccoy]# ls -l /usr/local/nagios/etc/
> total 68
> -rw-rw-r-- 1 nagios nagios 10459 Jan 24 09:47 cgi.cfg
> -rw-r--r-- 1  root   root      26 Jan 24 09:34 htpasswd.users
> -rw-r--r-- 1  nagios nagios 42466 Jan 24 09:54 nagios.cfg
> drwxrwxr-x 2 nagios nagios  4096 Jan 24 09:47 objects
> -rw-rw---- 1 nagios nagios  1341 Jan 24 09:47 resource.cfg

Do you have SELinux enabled? Is it blocking read access? The default
SELinux policy typically only affects the CGI's but you may have a more
restrictive policy enforced. Also, are the permissions on
/usr/local/nagios/etc/ and above 755 or set so that the nagios user has
read/execute access?

--
Marc

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null





More information about the Users mailing list