mostafamemariani / 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

port2 not getting set when in .cnf file #165

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Set port2 in the .cnf file, e.g. 

<?php
port2=8080;
?>

2. Run the command on the command line connecting to a machine that has apache 
running on ONLY port 8080

3. -1 values returned.

Original issue reported on code.google.com by pcle...@gmail.com on 17 Nov 2010 at 5:34

GoogleCodeExporter commented 8 years ago
port2 is not configurable in that manner. it must be passed in via the --port2 
parameter

You can edit your X Apache data input methods as follows

First:

    Input String: <path_php_binary> -q <path_cacti>/scripts/ss_get_by_ssh.php --host <hostname> --port2 <port> --type apache --items a1

Next:

    Add "port" as a field

Next:

    Edit the equivalent Data Template and set the port now shown in Custom Data

Repeat those steps for each X Apache data input method.

Original comment by hobod...@me.com on 28 Dec 2010 at 7:39

GoogleCodeExporter commented 8 years ago
Right, thanks, will do.

But shouldn't this be changed in the publicly distributed templates?

I might have enough experience now to make the change and submit.

Original comment by pcle...@gmail.com on 29 Dec 2010 at 11:31

GoogleCodeExporter commented 8 years ago
This is solved in r540 and the manual steps are no longer necessary.

Original comment by baron.schwartz on 22 Jan 2011 at 6:45