Closed GoogleCodeExporter closed 8 years ago
This is debatably a bug -- by default when you're getting the data via SSH, you
ssh to the $options[host] and query localhost for the status info. When you're
not sshing, you need to query $options[host].
It's debatable because you could set the status_server config option to prevent
this. But I think it's also fixable in the code. Your fix isn't generically
applicable, but I will refresh my memory on the source code and see if I can
find one that is.
Original comment by baron.schwartz
on 25 Jan 2012 at 3:04
This seems like the right fix to me:
function apache_cmdline ( $options ) {
global $status_server, $status_url, $http_user, $http_pass, $http_port;
$srv = $status_server;
if ( isset($options['server']) ) {
$srv = $options['server'];
}
elseif ( ! $options['use-ssh'] ) {
$srv = $options['host'];
}
I'll be fixing this in the new project.
Original comment by baron.schwartz
on 25 Jan 2012 at 3:29
Original issue reported on code.google.com by
w...@gunty.net
on 17 Oct 2011 at 8:52