Solution to port 3128 error reported by squid in ganglia plug-in

Source: Internet
Author: User
Tags varnish

After installing ganglia, you need to use the squid reverse proxy to accelerate the background service.Gmond_python_modules-master and copy squid. py and squid. pyconf to the corresponding location,Pass/Usr/local/ganglia/sbin/gmond-m to verify the configuration validity, but port 3128 error is reported.

I analyzed it later. py and. the pyconf file finds that the py file reads the squidclient Mgr: info information, that is, ganglia reads the Mgr: info information of squid for plotting, but squidclient reads the default port 3128 of squid by default, if you modify the squid port, port 3128 is returned.


Solution:

1. Method 1: directly modify the squid. py fileChange squidclient Mgr: info to/usr/local/squid/bin/squidclient-P port Mgr: info.

2. Method 2: see the varnish. py and varnish. pyconf files. Modify the squid. pyconf configuration file andSource codeRead the squid. pyconf configuration file.


Method 1: simple. You only need to change one source.CodeBut it is not flexible enough. If you change the port next time, you still need to modify the source code and re-compile it.

Method 2: flexible and convenient. You only need to modify the configuration file next time without re-compiling.



Here we will not provide the specific modification code for method 2. If you want to use method 2, you can refer to the varnish Method for modification or contact the author.

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.