';
$blockBody['db'] .= sprintf(''.classValue(_('%s DB volumes totaling %sMB (%s%% utilsed).'),'value').' | ',
$app['server']->GetDBDetail('PHYSICAL_VOLUMES'),$app['server']->GetDBDetail('AVAIL_SPACE_MB'),
$app['server']->GetDBDetail('PCT_UTILIZED'));
foreach ($app['server']->GetDBDetail('dbvols') as $key) {
$blockBody['db'] .= sprintf(' | '.classValue(_('%s (%sMB) (%sMB Free) (%s).'),'value').' | ',
$key['COPY1_NAME'],$key['AVAIL_SPACE_MB'],$key['FREE_SPACE_MB'],$key['COPY1_STATUS']);
if ($key['COPY2_NAME'])
$blockBody['db'] .= sprintf(' | '.classValue(_('%s (%s).'),'value').' | ',
$key['COPY2_NAME'],$key['COPY2_STATUS']);
if ($key['COPY3_NAME'])
$blockBody['db'] .= sprintf(' | '.classValue(_('%s (%s).'),'value').' | ',
$key['COPY3_NAME'],$key['COPY3_STATUS']);
}
$blockBody['db'] .= ' | ';
$blockBody['db'] .= sprintf(''.classValue(_('%s LOG volumes totaling %sMB (%s%% utilsed).'),'value').' | ',
$app['server']->GetLogDetail('PHYSICAL_VOLUMES'),$app['server']->GetLogDetail('AVAIL_SPACE_MB'),
$app['server']->GetLogDetail('PCT_UTILIZED'));
foreach ($app['server']->GetLogDetail('logvols') as $key) {
$blockBody['db'] .= sprintf(' | '.classValue(_('%s (%sMB) (%sMB Free) (%s).'),'value').' | ',
$key['COPY1_NAME'],$key['AVAIL_SPACE_MB'],$key['FREE_SPACE_MB'],$key['COPY1_STATUS']);
if ($key['COPY2_NAME'])
$blockBody['db'] .= sprintf(' | '.classValue(_('%s (%s).'),'value').' | ',
$key['COPY2_NAME'],$key['COPY2_STATUS']);
if ($key['COPY3_NAME'])
$blockBody['db'] .= sprintf(' | '.classValue(_('%s (%s).'),'value').' | ',
$key['COPY3_NAME'],$key['COPY3_STATUS']);
}
$blockBody['db'] .= ' | ';
$blockBody['db'] .= sprintf(''.classValue(_('Database REDO log mode %s.'),'value').' | ',
$app['server']->GetStatusDetail('LOGMODE'));
$blockBody['db'] .= ' | ';
$blockBody['db'] .= sprintf(''.classValue(_('%s%% database cache hit rate (%s%% cache wait).'),'value').' | ',
$app['server']->GetDBDetail('CACHE_HIT_PCT'),$app['server']->GetDBDetail('CACHE_WAIT_PCT'));
if ($trigger = $app['server']->GetDBBackupDetail('trigger')) {
$blockBody['db'] .= ' | ';
$blockBody['db'] .= sprintf(''.classValue(_('TSM will automatically backup the database to %s when the logs reach %s%% full.'),'value').' | ',
sprintf('%s',$app['server']->getIndex(),$trigger['INCRDEVCLASS'],$trigger['INCRDEVCLASS']),
$trigger['LOGFULLPCT']);
$blockBody['db'] .= sprintf(''.classValue(_('After %s INCREMENTAL backups, a full backup will be performed to %s.'),'value').' | ',
$trigger['NUMICREMENTAL'],
sprintf('%s',$app['server']->getIndex(),$trigger['DEVCLASS'],$trigger['DEVCLASS']));
}
$blockBody['db'] .= ' | ';
# Show our dbbackup graph
$blockBody['db'] .= sprintf(' |
',
$app['server']->getIndex());
$blockBody['db'] .= '