Ganglia debugging skills

Source: Internet
Author: User

Gmond # Check whether the Gmond service is running. Run the following command: ps aux | grep gmond.
Output:
Root 8046 0.0 0.0 103244 844 pts/0 S + grep gmond
Nobody 25759 1.8 1.0 206388? Ssl Apr28 208:45/usr/local/sbin/gmond -- conf =/etc/ganglia/gmond. conf

# Stop the Gmond service and start the service in Debug mode
/Etc/init. d/gmond stop
/Usr/sbin/gmond-d 2
Then look for errors close to the top

# Try to use netcat (Network View tool) to read XML data from the gmond daemon
Nc & lt; hostname & gt; 8649

# Check whether the UDP connection is established between gmetad and gmond (or in multicast mode, gmond and other gmond). You can run the following command on the problematic machine:
Nc-u-l 8653
Then run the following command on gmetad or another gmond Server:
Echo "hello" | NCS-u
# Use/usr/bin/gstat-a to check gmond data (gstat-a try)

Gmetad # Check whether the Gmetad service is running. Run the following command: ps aux | grep gmetad.

# Check System error logs
Tail/var/log/messages

# Stop the gmetad service and run gmetad in debug mode
/Etc/init. d/gmetad stop
/Usr/sbin/gmetad-d 2
Then look for errors close to the top

# Make sure that "nobody" (Ganglia user In Debian/Ubuntu) is the owner of the "/var/lib/ganglia" directory and all subdirectories, and has write permission.

# Use netcat to read XML data from the gmetad daemon
Nc & lt; hostname & gt; 8650
This information is very useful for submitting error reports.

Web # monitoring Web error logs. PHP errors will appear here:
Tail-f/var/log/apache2/error_log

# Make sure that the configuration of conf. php is correct. If you install it from the source code, you should not only copy the web/directory, but also rename the conf. php. in And version. php. in files. Some variables in the file need to be set. Run "make-C web conf. php version. php" or manually modify these variables (there are only two places with the @ symbol ).


From: http://sourceforge.net/apps/trac/ganglia/wiki/FAQ

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.