google-code-export / mysql-cacti-templates

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

get_stats_apache is hardcoded to reference http://localhost #57

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
In ss_get_by_ssh.php, in the get_stats_apache() function, $srv is defined
to keep track of the server name to use when calling Apache. However, $srv
is not used in the call itself, located a few lines below:

$cmd = "$cmd wget $auth -U Cacti/1.0 -q -O - -T 5 'http://localhost$url?auto'";

This line should probably read:

$cmd = "$cmd wget $auth -U Cacti/1.0 -q -O - -T 5 'http://$srv$url?auto'";

Original issue reported on code.google.com by highprof...@gmail.com on 30 Apr 2009 at 5:37

GoogleCodeExporter commented 9 years ago
Fixed in r182.  Thanks!

Original comment by baron.schwartz on 7 May 2009 at 3:47