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

本文出自 “自强不息” 博客,请务必保留此出处http://mos1989.blog.51cto.com/4226977/1113652

查看本栏目更多精彩内容:http://www.bianceng.cnhttp://www.bianceng.cn/Servers/zs/

时间: 2024-12-31 22:06:21

nagios+cacti+nrpe+nconf整合最后报错的解决步骤的相关文章

eclipse导入jquery包后报错的解决方法

 eclipse导入jquery包后报错,处理步骤如下:    1.打开项目.project文件,去掉如下内容:   代码如下: <buildCommand>  <name>org.eclipse.wst.jsdt.core.javascriptValidator</name>  <arguments>  </arguments>  </buildCommand>    2.删除原来的js,重启重新复制一份,因为原来的文件已被ecli

eclipse导入jquery包后报错的解决方法_jquery

eclipse导入jquery包后报错,处理步骤如下: 1.打开项目.project文件,去掉如下内容: 复制代码 代码如下: <buildCommand> <name>org.eclipse.wst.jsdt.core.javascriptValidator</name> <arguments> </arguments> </buildCommand> 2.删除原来的js,重启重新复制一份,因为原来的文件已被eclipse项目标记为

struts2 spring hibernate整合后报错

问题描述 struts2 spring hibernate整合后报错 在eclipse里面run on server之后,可以正确显示界面,但当填写表单点击按钮后出现了这个报错 Struts Problem Report Struts has detected an unhandled exception: Messages: 1.org.hibernate.SessionFactory.openSession()Lorg/hibernate/classic/Session; 2.Method

flex-FLEX与MyEclipse后报错 无法将“&amp;amp;lt;local:XXXXXX&amp;amp;gt;”解析为组件执行

问题描述 FLEX与MyEclipse后报错 无法将"<local:XXXXXX>"解析为组件执行 很纠结的一个问题我去,在FLEX 4.5中编辑没有问题 但是在把FLEX和MyEclipse整合以后把这个文件放到项目里就报错了.... /s:NavigatorContent /s:NavigatorContent /s:NavigatorContent /s:NavigatorContent /s:NavigatorContent/mx:ViewStack 这句报错 错误

java-用HQLhelper方式,然后报错,求解决。

问题描述 用HQLhelper方式,然后报错,求解决. 因为在hql语句中2个占位符几个.我查了百度,query.setparameter就可以解决.可是我写的是HQLhelper- 解决方案 ClickOnce 部署中报错的解决方式squid日志报错信息的解决方式启动服务器报错,求解决

session-apache tomcat集群Session 共享后报错!

问题描述 apache tomcat集群Session 共享后报错! 我参考http://www.blogjava.net/killme2008/archive/2007/03/13/103607.html 实现session共享.然后我把我的工程放到tomcat 里面去.启动不报错.点击登录的时候就登录不进去.多次点击登录按钮会进入到主界面然后又强制退出到登录界面.我的tomcat集群版本是Apache 2.2.25Tomcat-7.0.55 点击登录的时候报:严重: Manager [loc

java-spring添加@Async后报错.BeanCurrentlyInCreationException

问题描述 spring添加@Async后报错.BeanCurrentlyInCreationException 今天想优化一个action,所以在一个方法上添加了@Async的注解, 可是在启动程序时候却报了这个错,求指点. org.springframework.beans.factory.BeanCurrentlyInCreationException: Error creating bean with name 'cacheService': Bean with name 'cacheSe

注册表-mfc单文档文件嵌入word的文档,运行后报错

问题描述 mfc单文档文件嵌入word的文档,运行后报错 我是按照这个链接做的.https://support.microsoft.com/zh-cn/kb/238611 但运行后就出现了未能创建新对象,请确保对象已输入注册表的错误. 我用的是vs2012和office2013 请问各位大牛该如何解决这个问题

shiro ehcache-shiro整合ehcache时报错

问题描述 shiro整合ehcache时报错 5C shiro整合ehcacheapplication-shiro.xml中相关配置: <bean id=""securityManager"" class=""org.apache.shiro.web.mgt.DefaultWebSecurityManager""> <property name=""realm"" re