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.