<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>