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

发布时间:2020-08-16 14:55:50 作者:上官战
来源:网络 阅读:961

在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

推荐阅读:
  1. Exchange 2013安装报错解决方法
  2. ORA-01102 报错解决方法

免责声明:本站发布的内容(图片、视频和文字)以原创、转载和分享为主,文章观点不代表本网站立场,如果涉及侵权请联系站长邮箱:is@yisu.com进行举报,并提供相关证据,一经查实,将立刻删除涉嫌侵权内容。

nagios cacti nrpe

上一篇:bootstrap-代码块

下一篇:Topaz Mask AI for Mac(智能图片蒙板创建软件)

相关阅读

您好,登录后才能下订单哦!

密码登录
登录注册
其他方式登录
点击 登录注册 即表示同意《亿速云用户服务条款》