This error message appears after clicking Generate Nagios Config on the Web page
Generating config:
[Initializing nconf Perl-api (library version 0.2, written by A. Gargiulo)]
[Copyright (c) 2006-2009 Sunrise Communications AG, Zurich, Switzerland]
Running syntax Check:
Default_collector:error Generating Config
--------------------------------------------------------------------------------
Nagios Core 3.2.1
Copyright (c) 2009-2010 Nagios Core Development team and Community Contributors
Copyright (c) 1999-2009 Ethan Galstad
Last modified:03-09-2010
License:gpl
website:http://www.nagios.org
Reading Configuration data ...
Error:cannot Open Main configuration file '/usr/local/apache/htdocs/nconf/temp/test/default_collector.cfg ' for reading!
Error Processing main config file!
> Name of the main configuration file looks suspicious ...
Make sure your 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 is encountered while processing the config files ...
Check your configuration file (s) to ensure that they contain valid
directives and data defintions. If you are are upgrading from a previous
Version of Nagios, you should being aware that some variables/definitions
may have been removed or modified into this version. Make sure to read
The HTML documentation regarding the config files, as the
' Whats New ' what has changed.
Deployment not possible due to errors in configuration.
The author of the environment, using the rhel5.8 32, and the CD source installed HTTP and PHP,
But MySQL is the latest version of the build installation,
So nconf's script uses Perl to not interact with MySQL,
Therefore, the installation of Perl-dbd-mysql can be resolved: # Yum Install perl-dbd-mysql-y
This article from the "Self-Improvement" blog, please be sure to retain this source http://mos1989.blog.51cto.com/4226977/1113652
See more highlights of this column: http://www.bianceng.cnhttp://www.bianceng.cn/Servers/zs/