ganglia/ganglia-web — Issue #51: nagios/check_metric.php is confused by host names that match on substrings
Author: scottbessler
Created: 2012-03-06 21:37:25+00:00
State: open

```
if ( strpos( $ganglia_hosts_array[$i], $host ) !== false ) {
```

is doing a substring match on host name which is dangerous if you have 2 host_name's where one is a substring of eachother (I encountered an issue where querying for host=staging was returning results from host=staging2)