Ganglia monitoring deployment learning notes sharing

Source: Internet
Author: User

This article will introduce you to the ganglia monitoring Deployment Study notes. I hope some articles will be helpful to you.

Recently, ganglia has been studied to summarize some possible problems:


1. Why does modpython. so appear in the directory with-python or without lib/ganglia when ganglia is compiled?

Pay attention to the following two points:

(1) with-python is followed by the python binary path, for example:

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

After the soft chain, add/usr/local/python/lib under/etc/ld. so. conf.

 

 


2. Many ganglia extension plug-ins have been encapsulated under the latest ganglia tar package and can be used directly without going to the Internet. The path is under the decompressed path, for example:

The ganglia-3.5.0/gmond/moduels directory is used to tell the so extension for loading perl, python, and php. Provides the running environment and related configurations of the following three script plug-ins.

Ganglia-3.5.0/gmond/perl_moduels perl language monitoring plug-in script

Ganglia-3.5.0/gmond/php_moduels php language monitoring plug-in script

Ganglia-3.5.0/gmond/python_moduels python language monitoring plug-in script

 


Specific configuration meaning can see 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 you shoshould place configuration files for your Python modules. pyconf files
Modpython. conf exists in/etc/ganglia/conf. d-it contains a direve ve which will 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 shoshould be placed as. py files.
These things shocould be automatically done for you if you installed Python modules support via binary packages. If that is not 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 fully setup. You will need:

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 (64)/ganglia/modpython. so"
Params = "/usr/lib (64)/ganglia/python_modules"
}
}

Include ('/etc/ganglia/conf. d/*. pyconf') Create the directory/usr/lib (64)/ganglia/python_modules
Ensure that/usr/lib (64)/ganglia/modpython. so already exists (Ubuntu 10.10 gets this one right when you install ganglia via 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.