"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "api/metrics.php" between
ganglia-web-3.7.1.tar.gz and ganglia-web-3.7.2.tar.gz

About: Ganglia is a scalable distributed monitoring system for high-performance computing systems such as clusters and grids (Ganglia Web UI).

metrics.php  (ganglia-web-3.7.1):metrics.php  (ganglia-web-3.7.2)
skipping to change at line 81 skipping to change at line 81
break; break;
} }
} }
# Host has been found in the Ganglia tree # Host has been found in the Ganglia tree
if ( $host_found == 1 ) { if ( $host_found == 1 ) {
# Check for the existence of a metric # Check for the existence of a metric
if ( isset($metrics[$fqdn][$metric_name]['VAL']) ) { if ( isset($metrics[$fqdn][$metric_name]['VAL']) ) {
$metric_value = $metrics[$fqdn][$metric_name]['VAL']; $metric_value = $metrics[$fqdn][$metric_name]['VAL'];
} else { } else {
api_return_error($metric_name . " - Invalid metric request for this host. Pl ease check metric exists."); api_return_error(htmlentities($metric_name) . " - Invalid metric request for this host. Please check metric exists.");
exit(3); exit(3);
} }
$ganglia_units = $metrics[$fqdn][$metric_name]['UNITS']; $ganglia_units = $metrics[$fqdn][$metric_name]['UNITS'];
api_return_ok(array( api_return_ok(array(
'metric_value' => $metric_value 'metric_value' => $metric_value
, 'units' => $ganglia_units , 'units' => $ganglia_units
)); ));
} else { } else {
api_return_error($metric_name . " - Hostname info not available. Likely inval id hostname"); api_return_error(htmlentities($metric_name) . " - Hostname info not available . Likely invalid hostname");
} }
?>
 End of changes. 3 change blocks. 
2 lines changed or deleted 2 lines changed or added

Home  |  About  |  All  |  Newest  |  Fossies Dox  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTPS