<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Verdana
}
--></style>
</head>
<body class='hmmessage'>
Hi and thank you for your reply.<BR>
<BR>
Here are the outputs:<BR>
<BR>
[root@localhost ~]# cd /var/nagios/spool/<BR>[root@localhost spool]# ls -l<BR>drwxrwxrwx 2 nagios nagios 4096 Jul 1 10:25 checkresults<BR>
<BR>
<BR>[root@localhost var]# cd /var<BR>[root@localhost var]# ls -l<BR>drwxrwxrwx 5 nagios nagios 4096 Jul 1 09:16 nagios<BR><BR>Please let me know what my mistake is...<BR>
<BR>
Thanks,<BR>
h<BR><BR><BR><BR>
<DIV><FONT color=#ff0000><STRONG>
<DIV><FONT color=#ff0000><STRONG></STRONG></FONT> </DIV></STRONG></FONT></DIV><BR><BR><BR>
<BR>> Date: Thu, 1 Jul 2010 15:40:40 +0100<BR>> From: nagios@flatto.net<BR>> To: nagios-users@lists.sourceforge.net<BR>> Subject: Re: [Nagios-users] heck result path is not a valid directory<BR>> <BR>> Honia A wrote:<BR>> > Hi all,<BR>> > <BR>> > I installed Nagios on a 32-bit system (CentOS 5.3) following the <BR>> > directions given here: <BR>> > http://docs.cslabs.clarkson.edu/wiki/Install_Nagios_on_CentOS_5 <BR>> > <BR>> > Everything went well and I ran nagios -v /etc/nagios/nagios.cfg and <BR>> > got no errors or warnings. But when I tried to start Nagios, it failed.<BR>> > <BR>> > Checked the log file and it reads:<BR>> ><BR>> > [1277993818] Error in configuration file '/etc/nagios/nagios.cfg' - <BR>> > Line 466 (Check result path is not a valid directory)<BR>> > [1277993818] Nagios 3.2.1 starting... (PID=27996)<BR>> > [1277993818] Local time is Thu Jul 01 10:16:58 EDT 2010<BR>> > [1277993818] LOG VERSION: 2.0<BR>> > [1277993818] Bailing out due to one or more errors encountered in the <BR>> > configuration files. Run Nagios from the command line with the -v <BR>> > option to verify your config before restarting. (PID=27996)<BR>> > <BR>> > Then I opened nagios.cfg file and found this:<BR>> > check_result_path=/var/nagios/spool/checkresults<BR>> > <BR>> > I am pretty sure it's a permission error, but can't seem to fix it. I <BR>> > tried the followings:<BR>> > <BR>> > chmod 777 /var/nagios/spool/checkresults<BR>> > chown -R nagios apache /var/nagios/spool/checkresults<BR>> > ./usermod nagios apache<BR>> > chown -R apache:nagios checkresults<BR>> > <BR>> > And some more permission commands, but no luck. I would really <BR>> > appreciate it if someone could please help me with this.<BR>> Under what user/group is nagios running ?<BR>> <BR>> what is the current permissions of the /var/nagios/spool/checkresults <BR>> directory ?<BR>> <BR>> have you also checked parent directory permissions ? it is ok that the <BR>> target dir has 777 access , but if /var/nagios does not , this is a dead <BR>> point .<BR>> <BR>> -- <BR>> Never,Ever Cut A Deal With a Dragon <BR>> <BR>> <BR>> <BR>> <BR>> ------------------------------------------------------------------------------<BR>> This SF.net email is sponsored by Sprint<BR>> What will you do first with EVO, the first 4G phone?<BR>> Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first<BR>> _______________________________________________<BR>> Nagios-users mailing list<BR>> Nagios-users@lists.sourceforge.net<BR>> https://lists.sourceforge.net/lists/listinfo/nagios-users<BR>> ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. <BR>> ::: Messages without supporting info will risk being sent to /dev/null<BR> <br /><hr />The New Busy is not the too busy. Combine all your e-mail accounts with Hotmail. <a href='http://www.windowslive.com/campaign/thenewbusy?tile=multiaccount&ocid=PID28326::T:WLMTAGL:ON:WL:en-US:WM_HMP:042010_4' target='_new'>Get busy.</a></body>
</html>