Ganglia monitoring deployment learning notes Sharing

Source: Internet
Author: User
Tags php language

Recently in the research ganglia, the summary shares some possible problems:


1. Why compile ganglia when adding With-python or no Lib/ganglia directory appears modpython.so?

The main point of this question is to note two:

(1) With-python followed by the Python binary path, such as:

./configure--with-python=/usr/local/python/bin/python2.7
(2) Python's libpython.so must be soft linked to the system's recognizable dynamic library path, even if the python's so path is specified under/et/ld.so.conf. For example
Ln-s/usr/local/python/lib/libpython2.7.so/usr/local/lib/libpython2.7.so

After the soft chain will also be under the/etc/ld.so.conf to add/usr/local/python/lib.


2. Many extensions of ganglia are already packaged under the latest ganglia tar packages, and are used directly, and do not need to be searched around the internet. The path is under the uncompressed path, for example:

Ganglia-3.5.0/gmond/moduels This directory is used to tell the load perl,python,php so extension. Provides the operating environment and related configuration for the following three scripting Plug-ins.

Ganglia-3.5.0/gmond/perl_moduels Perl Language Monitoring plug-in script

ganglia-3.5.0/gmond/php_moduels PHP Language Monitor plugin script

Ganglia-3.5.0/gmond/python_moduels Python language Monitor plugin script


The specific configuration implications can be seen in the official document Http://sourceforge.net/apps/trac/ganglia/wiki/ganglia_gmond_python_modules,

Cchecklistto confirm that your Ganglia installation has Python support correctly setup, double check the following:

Gmond.conf has a line which reads something along the lines of include ("/etc/ganglia/conf.d/*.conf"). This is the directory where to should place configuration files for your Python modules as.pyconf files
Modpython.conf exists in/etc/ganglia/conf.d-it contains a directive which would include the pyconf files
You have modpython.so In/usr/lib{64}/ganglia
The directory/usr/lib{64}/ganglia/python_modules exists. This is the directory where Python modules should to be placed as. py files.
These things should are automatically done for you if you installed Python modules via support binary. If It isn't the case, please file a bug at the distribution ' s corresponding bug tracker.

Ubuntu 10.10 Notesubuntu 10.10 does not come with Python support for Gmond setup. You'll need to:

Create/etc/ganglia/conf.d/modpython.conf and make it look like https://sourceforge.net/apps/trac/ganglia/browser/ Trunk/monitor-core/gmond/modules/conf.d/modpython.conf.in-for instance:
Modules {
module {
Name = "Python_module"
Path = "/usr/lib (/ganglia/modpython.so)"
params = "/usr/lib (/ganglia/python_modules)"
}
}

Include ('/etc/ganglia/conf.d/*.pyconf ') Create the Directory/usr/lib/ganglia/python_modules
Ensure That/usr/lib/ganglia/modpython.so already exists (Ubuntu 10.10 gets this one right when you install Ganglia VI A apt)

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.