secce 发表于 2013-1-11 09:05:20

nagios+cacti+nrpe+nconf整合最后报错解决

在web页面点击Generate Nagios config后出现了这个错误提示
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

huhahapz 发表于 2013-3-14 07:05:23

不错不错,楼主您辛苦了。。。

yl197837 发表于 2013-5-16 01:50:58

不在放荡中变坏,就在沉默中变态!

son30 发表于 2013-5-17 08:49:33

读书读到抽筋处,文思方能如尿崩!

plantegg 发表于 2013-5-18 11:37:05

一时的冲动,子孙的危机!

xiguaqq20 发表于 2013-5-19 14:09:11

不要在一棵树上吊死,在附近几棵树上多试试死几次~

roger2001c 发表于 2013-5-20 16:57:07

佛曰,色即是空,空即是色!今晚,偶想空一下
页: [1]
查看完整版本: nagios+cacti+nrpe+nconf整合最后报错解决