Nagios+cacti+nrpe+nconf consolidate the final error resolution steps

Source: Internet
Author: User
Tags command line config final install perl

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/

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.