<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.2900.3157" name=GENERATOR></HEAD>
<BODY>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN
class=544311118-01102007>I use full paths when ever checking this kind of
thing. That being said, looking at the output, you have "//"
for your path to nagios.cfg</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN
class=544311118-01102007></SPAN></FONT> </DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN
class=544311118-01102007>Try using the full paths to your config
file.</SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2></FONT> </DIV>
<DIV align=left><FONT face=Arial size=2>Chris Waters</FONT></DIV>
<DIV align=left><FONT face=Arial size=2>Technology Services - Network
Group</FONT></DIV>
<DIV align=left><FONT face=Arial size=2>JELD-WEN, Inc.</FONT></DIV>
<DIV align=left><FONT face=Arial size=2>Information Systems</FONT></DIV>
<DIV align=left><FONT face=Arial size=2><A
href="mailto:cwaters@jeld-wen.com">cwaters@jeld-wen.com</A></FONT></DIV>
<DIV> </DIV><BR>
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>From:</B> nagios-users-bounces@lists.sourceforge.net
[mailto:nagios-users-bounces@lists.sourceforge.net] <B>On Behalf Of </B>Nedim
Bicic<BR><B>Sent:</B> Monday, October 01, 2007 11:04 AM<BR><B>To:</B>
nagios-users@lists.sourceforge.net<BR><B>Subject:</B> [Nagios-users] Canot read
nagios.cfg after the doing precheck help<BR></FONT><BR></DIV>
<DIV></DIV>
<DIV>Hey all just installed nagios 2.9 and upgrade from wat i had 2.4 i dont see
a diffrence anyways</DIV>
<DIV> </DIV>
<DIV>i am trying to run on command line to check for any errors </DIV>
<DIV><STRONG>/usr/local/nagios/bin/nagios -v nagios.cfg</STRONG></DIV>
<DIV><STRONG></STRONG> </DIV>
<DIV>this is what i get:</DIV>
<DIV> </DIV>
<DIV><STRONG>> /usr/local/nagios/bin/nagios -v
nagios.cfg</STRONG><BR><BR>Nagios 2.9<BR>Copyright (c) 1999-2007 Ethan Galstad
(<A href="http://www.nagios.org">http://www.nagios.org</A>)<BR>Last Modified:
04-10-2007<BR>License: GPL<BR><BR>Reading configuration data...<BR><BR>Error:
Cannot open main configuration file '//nagios.cfg' for reading!<BR><BR>***>
One or more problems was encountered while processing the config files...
<BR><BR> Check your configuration file(s) to ensure that
they contain valid<BR> directives and data
defintions. If you are upgrading from a
previous<BR> version of Nagios, you should be aware that
some variables/definitions <BR> may have been removed or
modified in this version. Make sure to read<BR>
the HTML documentation regarding the config files, as well as
the<BR> 'Whats New' section to find out what has
changed.<BR> </DIV>
<DIV> </DIV>
<DIV><STRONG>it has to be a permission issue on the nagios.cfg file her are my
permission :</STRONG></DIV>
<DIV> </DIV>
<DIV><STRONG>> ls -l</STRONG><BR>total 80<BR>-rw-rw-r-- 1 nagios
nagios 9577 Sep 29 19:30 cgi.cfg<BR>-rw-rw-r-- 1 nagios nagios
8579 Sep 29 18:46 commands.cfg<BR>-rw-r--r-- 1 root
root 26 Sep 29 19:28 htpasswd.users
<BR>-rw-rw-r-- 1 nagios nagios 12469 Sep 29 18:46
localhost.cfg<BR>-rw-rw-r-- 1 nagios nagios 31134 Oct 1 13:45
nagios.cfg<BR>-rw-rw---- 1 nagios nagios 1338 Sep 29 18:46
resource.cfg<BR> </DIV>
<DIV> </DIV>
<DIV>i restarted my apache and because the file cant be ready getting host down
on the local host obiusly this has to do with my problem above </DIV>
<DIV> </DIV>
<DIV>also i may add i renamed the files from nagios.cfg-sample to nagios.cfg to
all .cfg-sample files </DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV>thanks for help in advance</DIV></BODY></HTML>