problem with fresh install

Everything else...
problem with fresh install

Post by msd » Mon Jun 08, 2009 20:14

Hello, I just installed nconf for the first time following the quickstart guidelines.

The first time i accessed the page, to make sure everything is working properly i tried 'generate config' and i get this error:
Generating config:

Running tests:

Default_collector: Error generating config

Nagios 3.0.6 Copyright (c) 1999-2008 Ethan Galstad ( Last Modified: 12-01-2008 License: GPL Reading configuration data... Error: Cannot open main configuration file '/var/apache2/htdocs/nconf/temp/test/Default_collector.cfg' for reading! ***> The name of the main configuration file looks suspicious... Make sure you are specifying the name of the MAIN configuration file on the command line and not the name of another configuration file. The main configuration file is typically '/usr/local/nagios/etc/nagios.cfg' ***> 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.

Deployment not possible due to errors in configuration.

All my Nagios config files are in /etc/nagios and the nagios binary and everything else is installed under /usr/local/nagios ( i did copy the nagios bin to /var/apache2/htdocs/nconf/bin/nagios"

Any ideas would be greatly appreciated.

User avatar
NConf developer
NConf developer
Joined:Fri Mar 06, 2009 17:50
Location:Zurich, Switzerland

Re: problem with fresh install

Post by agargiulo » Tue Jun 09, 2009 08:59

Make sure the "/var/apache2/htdocs/nconf/temp/" and "/var/apache2/htdocs/nconf/output/" folders are writable to the apache user and remove any existing files in these directories, because apache might have problems overwriting them.