[ERROR] Could not open configuration file ./config/nconf.php

Support requests, bug reports, questions etc.

[ERROR] Could not open configuration file ./config/nconf.php

Post by deonvermeulen » Tue Oct 20, 2009 15:40

Good Day,

I get [ERROR] Could not open configuration file ./config/nconf.php when running the generate_config script from command line.

I've made sure that ./config/nconf.php has RW access.
I have set the path to the nagios.cfg file in the static_cfg part, but it is not showing in the drop down box in Edit static config files.
I also get Config deployment failed! when trying to Deploy my Confgi I did in NConf.

I would really appreciate guidance on this.

Thank you.


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

Re: [ERROR] Could not open configuration file ./config/nconf.php

Post by agargiulo » Mon Oct 26, 2009 18:17


If you are executing generate_config.pl from the command line, make sure you are in the nconf root directory, and not in any subdirectory. Otherwise the path to the config directory will not be correct.

Call the script like this:

cd path/to/nconf/