#!/usr/bin/php 0 || strpos($keysPerf[$col],'Percentage') > 0) { $perfTotals[$col]+= ($perfValues[$ln][$col]/$nbVD); } else { $perfTotals[$col] += $val; } //Sub total per controller if ($path) { $ctrl = $arrayPath[$ln]['Curr']; if(!isset($perfTotalsC[$col][$ctrl])) $perfTotalsC[$col][$ctrl] = 0; if (strpos($keysPerf[$col],'%') > 0 || strpos($keysPerf[$col],'Percentage') > 0) { $perfTotalsC[$col][$ctrl] += ($perfValues[$ln][$col]/$nbVD); } else { $perfTotalsC[$col][$ctrl] += $val; } } //Per Virtual Disk if(!$otot) { if ($output_msg !== "") $output_msg .= ","; $output_msg .= str_replace("Virtual Disk ","VD ",$perfValues[$ln][0])." ".$keysPerf[$col]."=".$perfValues[$ln][$col]; } } if(!$ntot) { // Add the totals if ($output_msg !== "") $output_msg .= ","; $output_msg .= "Total ".$keysPerf[$col]."=".$perfTotals[$col]; // Add the sub totals per controller if ($path) { for ($k=0; $k --username --password [--port | --instance ] [--database ] [--storeproc <"text">] [--warning ] [--critical ] [--help] [--version] EOF; } // Function to display copyright information function copyright() { global $progname, $version; print <<