在web页面点击Generate Nagios config后出现了这个错误提示
10年的修文网站建设经验,针对设计、前端、开发、售后、文案、推广等六对一服务,响应快,48小时及时工作处理。全网整合营销推广的优势是能够根据用户设备显示端的尺寸不同,自动调整修文建站的显示方式,使网站能够适用不同显示终端,在浏览器中调整网站的宽度,无论在任何一种浏览器上浏览网站,都能展现优雅布局与设计,从而大程度地提升浏览体验。成都创新互联从事“修文网站设计”,“修文网站推广”以来,每个客户项目都认真落实执行。
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!
***> 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.
笔者的环境,使用的rhel5.8 32,及光盘源安装的 http和php,
但是MySQL却是编译安装的最新版,
因此nconf的脚本使用的perl无法和mysql交互导致,
因此安装 perl-DBD-MySQL 即可解决: # yum install perl-DBD-MySQL -y
网站名称:nagios+cacti+nrpe+nconf整合最后报错解决
标题来源:http://scyingshan.cn/article/gesgio.html