apache_cmdline is using wrong hostname
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Percona Monitoring Plugins |
Fix Released
|
Medium
|
Baron Schwartz |
Bug Description
When using ssh apache_cmdline is doing wget to hostname instead of to status_server
I think this caused by a bug in the function apache_cmdline: It should use the global variable $use_ssh and not $options['use-ssh']
When I use the following patched function everything is fine
function apache_cmdline ( $options ) {
global $status_server, $status_url, $http_user, $http_pass, $http_port, $use_ssh;
$srv = $status_server;
if ( isset($
$srv = $options['server'];
}
elseif ( ! $use_ssh ) {
$srv = $options['host'];
}
$url = isset($
$user = isset($
$pass = isset($
$port = isset($
$auth = ($user ? "--http-user=$user" : '') . ' ' . ($pass ? "--http-
return "wget $auth -U Cacti/1.0 -q -O - -T 5 \"http://
}
Related branches
- Baron Schwartz (community): Approve
-
Diff: 54 lines (+8/-5)2 files modifiedChangelog (+1/-0)
cacti/scripts/ss_get_by_ssh.php (+7/-5)
affects: | percona-toolkit → percona-monitoring-plugins |
tags: |
added: apache removed: doc |
description: | updated |
Changed in percona-monitoring-plugins: | |
milestone: | none → 1.0.0 |
assignee: | nobody → Baron Schwartz (baron-xaprb) |
importance: | Undecided → Medium |
status: | New → Confirmed |
Changed in percona-monitoring-plugins: | |
status: | Confirmed → Fix Committed |
Changed in percona-monitoring-plugins: | |
status: | Fix Committed → Fix Released |