Canot read nagios.cfg after the doing precheck help
Nedim Bicic
nedo72 at gmail.com
Mon Oct 1 20:04:02 CEST 2007
Hey all just installed nagios 2.9 and upgrade from wat i had 2.4 i dont see
a diffrence anyways
i am trying to run on command line to check for any errors
*/usr/local/nagios/bin/nagios -v nagios.cfg*
**
this is what i get:
*> /usr/local/nagios/bin/nagios -v nagios.cfg*
Nagios 2.9
Copyright (c) 1999-2007 Ethan Galstad (http://www.nagios.org)
Last Modified: 04-10-2007
License: GPL
Reading configuration data...
Error: Cannot open main configuration file '//nagios.cfg' for reading!
***> One or more problems was encountered while processing the config
files...
Check your configuration file(s) to ensure that they contain valid
directives and data defintions. If you are upgrading from a previous
version of Nagios, you should be aware that some variables/definitions
may have been removed or modified in this version. Make sure to read
the HTML documentation regarding the config files, as well as the
'Whats New' section to find out what has changed.
*it has to be a permission issue on the nagios.cfg file her are my
permission :*
*> ls -l*
total 80
-rw-rw-r-- 1 nagios nagios 9577 Sep 29 19:30 cgi.cfg
-rw-rw-r-- 1 nagios nagios 8579 Sep 29 18:46 commands.cfg
-rw-r--r-- 1 root root 26 Sep 29 19:28 htpasswd.users
-rw-rw-r-- 1 nagios nagios 12469 Sep 29 18:46 localhost.cfg
-rw-rw-r-- 1 nagios nagios 31134 Oct 1 13:45 nagios.cfg
-rw-rw---- 1 nagios nagios 1338 Sep 29 18:46 resource.cfg
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
also i may add i renamed the files from nagios.cfg-sample to nagios.cfg to
all .cfg-sample files
thanks for help in advance
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20071001/d237c73a/attachment.html>
-------------- next part --------------
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
-------------- next part --------------
_______________________________________________
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