#!/usr/local/bin/php -c/usr/local/directadmin/plugins/new_lvemanager/php.ini 0) { if(strlen($lveInfoVal[0]) > 1) { $lveInfoVal[2] = ( $lveInfoVal[2] * 100 / $lveInfoVal[4]); $lveInfoVal[3] = ( $lveInfoVal[3] * 100 / $lveInfoVal[4]); //if($lveInfoVal[3] >= $lveInfoVal[4]) if($lveInfoVal[3] >= 100) { $cpu_limited_flag = 1; } $memf_total += $lveInfoVal[11]; $mepf_total += $lveInfoVal[12]; if($lveInfoVal[3] > $cpu_max) { $cpu_max = $lveInfoVal[3]; } if($lveInfoVal[9] > $mem_max) { $mem_max = $lveInfoVal[9]; } if($lveInfoVal[10] > $lmem_max) { $lmem_max = $lveInfoVal[10]; } if($lveInfoVal[6] > $ep_max) { $ep_max = $lveInfoVal[6]; } if($lveInfoVal[7] > $lep_max) { $lep_max = $lveInfoVal[7]; } } } $start++; } ?>
Resource Usage Overview
0 ) || ( $mepf_total > 0 ) ) { echo 'Your site has been limited within the past 24 hours

'; if ($cpu_limited_flag) { echo 'CPU resources were limited for your site

'; } if ( $memf_total > 0 ) { echo 'Memory resources were limited for your site

'; } if ( $mepf_total > 0 ) { echo 'You have reached entry processes (number of simultaneously running php and cgi scripts, as well as cron jobs and shell sessions) limit '.$mepf_total.' times

'; } } else { echo 'Your site had no issues in the past 24 hours'; } if ( ( ( !$cpu_limited_flag ) && ( $cpu_max > 90 ) ) || ( ( $memf_total == 0 ) && ( $lmem_max > 0 ) && ( $mem_max > $lmem_max * 0.9 ) ) || ( ( $mepf_total == 0 ) && ( $lep_max > 0 ) && ( $ep_max > $lep_max * 0.9 ) ) ) { echo 'Your site might hit resource limits soon

'; if ( ( !$cpu_limited_flag ) && ( $cpu_max > 90 ) ) { echo 'Your CPU usage was at '.$cpu_max.'% out of 100%
'; } if ( ( $memf_total == 0 ) && ( $lmem_max > 0 ) && ( $mem_max > $lmem_max * 0.9 ) ) { echo 'Your Memory usage was at '.RoundMemB($mem_max).' out of '.RoundMemB($lmem_max).'
'; } if ( ( $mepf_total == 0 ) && ( $lep_max > 0 ) && ( $ep_max > $lep_max * 0.9 ) ) { echo 'You had '.$ep_max.' entry processes (number of simultaneously running php and cgi scripts, as well as cron jobs and shell sessions) out of '.$lep_max.' max entry processes allowed
'; } } ?>
[Details]