Nagios fails to start

Cam Johnson cam.johnson at teqsys.com
Fri Sep 16 14:58:27 CEST 2005


Paul L. Allen wrote:
> Cam Johnson writes:
> 
>> I'm having a problem getting nagios to start even though the -v test 
>> passes with no errors or warnings.
> 
> 
> The -v test is not entirely representative of the normal running
> situation (mainly because it doesn't change uid/gid to nagios).  The
> service nagios restart (or /etc/rc.d/init.d/nagios restart) does the
> testing as the nagios user and gives better diagnostics as to what is
> going wrong without having to resort to strace.  Just remember that
> restart does a poor job of stopping nagios so in a production environment
> after changing configs I do a stop, then a killall to clear up the
> stragglers then do a restart to get a check of the config.
> 
>> Running nagios with strace produces the following error after it has 
>> read the nagios.cfg file.
>> open("/usr/local/nagios/etc/nagios.cfg", O_RDONLY) = -1 EACCES 
>> (Permission denied)
>> I have changed the permissions of the nagios.cfg file to 777.
> 
> 
> Ownership/permissions of parent directory?  SELinux complications?
Thanks,

The problem was directory permissions.

Cam Johnson


-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. 
Download it for free - -and be entered to win a 42" plasma tv or your very
own Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
_______________________________________________
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