Lines Matching refs:metric_name
97 $metric_name = $pieces[0]; variable
103 if ( isset($metrics[$hostname][$metric_name]['VAL']) ) {
104 $metric_value = $metrics[$hostname][$metric_name]['VAL'];
107 $results_notok[] = "UNKNOWN " . $hostname . " " . $metric_name . " not found";
112 $ganglia_units = $metrics[$hostname][$metric_name]['UNITS'];
115 if ( isset($metric_total_value[$metric_name]) ){
116 $metric_total_value[$metric_name]['VAL'] += $metric_value;
118 $metric_total_value[$metric_name]['VAL'] = $metric_value;
119 $metric_total_value[$metric_name]['UNITS'] = $ganglia_units;
120 $metric_total_value[$metric_name]['CRIT'] = $critical_value;
121 $metric_total_value[$metric_name]['OPER'] = $operator;
126 …$results_ok[] = "OK " . $hostname . " " . $metric_name . " = " . $metric_value . " " . $ganglia_u…
128 …$results_notok[] = "CRITICAL " . $hostname . " " . $metric_name . " = ". $metric_value . " " . $g…
140 foreach ( $metric_total_value as $metric_name => $metric_total ) {
143 …$results_ok[] = 'OK "' . $host_reg . '" Total of ' . $metric_name . ' = ' . $metric_total['VAL'] .…
145 …$results_notok[] = 'CRITICAL ' . $host_reg . ' Total of ' . $metric_name . ' = ' . $metric_total['…