Build precise queries to find exactly what you need
Press ESC to close
@patrickz
Favorites0
Views0
Projects1
Can not download the check.
Reviewed 13 years ago
$ret_string=""; $perfvalue=""; # Getting Individual CPU Load $i=0; foreach ( @pourcentage ) { s/HOST-RESOURCES-MIB::hrProcessorLoad.d+ = INTEGER://g; $cpuuse=$_; $ret_string .= "CPU-$i:$cpuuse%, "; $perfvalue .= "CPU-$i=$cpuuse%;$warning;$critical;0;100 "; $i++; } print $ret_string." | ".$perfvalue." ";