KSriHarsha591 / mysql-cacti-templates

Automatically exported from code.google.com/p/mysql-cacti-templates
GNU General Public License v2.0
0 stars 0 forks source link

Add support for MySQL tunnel #181

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
This would be a very simple change to make to the MySQL script: to support a 
mysql tunnel you simply need to add a few (I think two) extra parameters and 
change the code where connection is made.

I made a simple adaptation and got it working on my own install. I added a 
tunnel parameter which is a boolean and if that was set I used 127.0.0.1 as the 
host. The tunnel port also needs to be supplied as the port for MySQL.

I am sure the way I have done it is not general enough - the tunnel host needs 
to be settable for one thing, but the concept definitely works. 

Original issue reported on code.google.com by alfredarmstrong@gmail.com on 10 Feb 2011 at 3:48

Attachments: