Can not open log file


#1

Hi
I get this when i try to run nagios anyone got a idea ?

running Fedora Core 5

had also problem running the cgi scripts but when I disabled selinux it worked.

[[email protected]]# nagios /etc/nagios/nagios.cfg

Nagios 2.5
Copyright © 1999-2006 Ethan Galstad (nagios.org)
Last Modified: 07-13-2006
License: GPL

Warning: Cannot open log file ‘/var/log/nagios/nagios.log’ for writing
Nagios 2.5 starting… (PID=2757)
Warning: Cannot open log file ‘/var/log/nagios/nagios.log’ for writing
Warning: Cannot open log file ‘/var/log/nagios/nagios.log’ for writing
Warning: Could not open object cache file ‘/var/log/nagios/objects.cache’ for writing!
Warning: Cannot open log file ‘/var/log/nagios/nagios.log’ for writing
Error: Unable to create temp file for writing status data!


#2

I solved the problem the user nagios didn’t have permission to browse to /var/log
Sorry for taking up your time with this but I just missed to set the proper permission on /var/log