ganglia/ganglia-web — Issue #49: check_metric.php does not honor the host parameter
Author: scottbessler
Created: 2012-03-06 05:29:14+00:00
State: open

# php -v
PHP 5.3.3 (cli) (built: Feb 2 2012 23:47:49)
Copyright (c) 1997-2010 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2010 Zend Technologies

https://github.com/ganglia/ganglia-web/blob/master/nagios/check_metric.php#L55

re-uses $host as a loop variable and reassigns the value that was set here: https://github.com/ganglia/ganglia-web/blob/master/nagios/check_metric.php#L22

causing check_metric to use first host no matter what host you send it.