2013-04-05 10:16:33 +02:00
|
|
|
<div id="search">
|
|
|
|
|
|
|
|
<div id="health1">
|
|
|
|
|
|
|
|
<div class="row">
|
2013-08-11 12:33:22 +02:00
|
|
|
<div class="cellhealthleft"><?php print $text_refresh_period; ?></div>
|
2013-04-05 10:16:33 +02:00
|
|
|
<div class="cellhealthright"><?php print HEALTH_REFRESH; ?> sec</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="row">
|
2013-08-11 12:33:22 +02:00
|
|
|
<div class="cellhealthleft"><?php print $text_server_name; ?></div>
|
2013-04-05 10:16:33 +02:00
|
|
|
<div class="cellhealthright"><?php print $sysinfo[0]; ?></div>
|
|
|
|
</div>
|
|
|
|
|
2015-03-18 15:22:53 +01:00
|
|
|
<div class="row">
|
|
|
|
<div class="cellhealthleft">Piler</div>
|
|
|
|
<div class="cellhealthright"><?php print $piler_version; ?></div>
|
|
|
|
</div>
|
|
|
|
|
2013-04-05 10:16:33 +02:00
|
|
|
<div class="row">
|
2013-08-11 12:33:22 +02:00
|
|
|
<div class="cellhealthleft"><?php print $text_server_operating_system; ?></div>
|
2013-04-05 10:16:33 +02:00
|
|
|
<div class="cellhealthright"><?php print $sysinfo[1]; ?></div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="row">
|
2013-08-11 12:33:22 +02:00
|
|
|
<div class="cellhealthleft"><?php print $text_uptime; ?></div>
|
2013-04-05 10:16:33 +02:00
|
|
|
<div class="cellhealthright"><?php print $uptime; ?></div>
|
|
|
|
</div>
|
|
|
|
|
2013-07-27 13:10:48 +02:00
|
|
|
<?php if(ENABLE_SAAS == 1) { ?>
|
|
|
|
<div class="row">
|
2013-08-11 12:33:22 +02:00
|
|
|
<div class="cellhealthleft"><?php print $text_online_users; ?></div>
|
2013-07-27 13:10:48 +02:00
|
|
|
<div class="cellhealthright"><a href="index.php?route=stat/online"><?php print $num_of_online_users; ?></a></div>
|
|
|
|
</div>
|
|
|
|
<?php } ?>
|
|
|
|
|
2013-04-05 10:16:33 +02:00
|
|
|
<div class="row">
|
2013-08-11 12:33:22 +02:00
|
|
|
<div class="cellhealthleft"><?php print $text_archive_size; ?></div>
|
2014-05-05 16:00:33 +02:00
|
|
|
<div class="cellhealthright"><?php print $archive_size; ?>B (<?php print $archive_stored_size; ?>B)</div>
|
2013-04-05 10:16:33 +02:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="row">
|
2013-08-11 12:33:22 +02:00
|
|
|
<div class="cellhealthleft"><?php print $text_smtp_status; ?></div>
|
2013-04-05 10:16:33 +02:00
|
|
|
<div class="cellhealthright">
|
|
|
|
<?php foreach($health as $h) {
|
|
|
|
if(preg_match("/^220/", $h[1])) {
|
|
|
|
$status = 'OK'; $class = 'text-success';
|
|
|
|
} else {
|
|
|
|
$status = 'ERROR'; $class = 'text-error';
|
|
|
|
}
|
|
|
|
?>
|
|
|
|
<div class="bold <?php print $class; ?>"><span><?php print $h[3]; ?>: <?php print $status; ?></span></div>
|
|
|
|
<?php } ?>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
<div class="row">
|
2013-08-11 12:33:22 +02:00
|
|
|
<div class="cellhealthleft"><?php print $text_processed_emails; ?></div>
|
2014-10-23 09:31:40 +02:00
|
|
|
<div class="cellhealthright">
|
|
|
|
<?php print $processed_emails['last_60_mins_count']; ?> / <?php print nice_size($processed_emails['last_60_mins_size']); ?> (<?php print $text_60_minutes; ?>)<br />
|
|
|
|
<?php print $processed_emails['today_count']; ?> / <?php print nice_size($processed_emails['today_size']); ?> (<?php print $text_24_hours; ?>)<br />
|
|
|
|
<?php print $processed_emails['last_7_days_count']; ?> / <?php print nice_size($processed_emails['last_7_days_size']); ?> (<?php print $text_1_week; ?>)<br />
|
|
|
|
<?php print $processed_emails['last_30_days_count']; ?> / <?php print nice_size($processed_emails['last_30_days_size']); ?> (<?php print $text_30_days; ?>)
|
|
|
|
</div>
|
2013-04-05 10:16:33 +02:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="row">
|
2013-08-11 12:33:22 +02:00
|
|
|
<div class="cellhealthleft"><?php print $text_cpu_usage; ?></div>
|
2013-04-05 10:16:33 +02:00
|
|
|
<div class="cellhealthright"><span class="bold <?php if($cpuinfo < HEALTH_RATIO) { ?>text-success<?php } else { ?>text-error<?php } ?>"><?php print $cpuinfo; ?>% <?php print $cpuload; ?></span></div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="row">
|
2013-08-11 12:33:22 +02:00
|
|
|
<div class="cellhealthleft"><?php print $text_memory_usage; ?></div>
|
2013-04-05 10:16:33 +02:00
|
|
|
<div class="cellhealthright"><span class="bold <?php if($meminfo < HEALTH_RATIO) { ?>text-success<?php } else { ?>text-error<?php } ?>"><?php print $meminfo; ?>% / <?php print $totalmem; ?> MB</span></div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="row">
|
|
|
|
<div class="cellhealthleft"><?php print $text_swap_usage; ?></div>
|
|
|
|
<div class="cellhealthright"><span class="bold <?php if($swapinfo < HEALTH_RATIO) { ?>text-success<?php } else { ?>text-error<?php } ?>"><?php print $swapinfo; ?>% / <?php print $totalswap; ?> MB</span></div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="row">
|
|
|
|
<div class="cellhealthleft"><?php print $text_disk_usage; ?></div>
|
2013-08-02 12:30:09 +02:00
|
|
|
<div class="cellhealthright"><?php foreach($shortdiskinfo as $partition) { ?><span class="bold <?php if($partition['utilization'] < HEALTH_RATIO) { ?>text-success<?php } else { ?>text-error<?php } ?>"><?php print $partition['partition']; ?> => <?php print nice_size(1000*$partition['used']); ?> / <?php print nice_size(1000*$partition['total']); ?> (<?php print $partition['utilization']; ?>%)</span><br /><?php } ?></div>
|
2013-04-05 10:16:33 +02:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="row">
|
|
|
|
<div class="cellhealthleft"><?php print $text_periodic_purge; ?></div>
|
2013-08-11 11:44:49 +02:00
|
|
|
<div class="cellhealthright">
|
|
|
|
<span class="bold <?php if($options['enable_purge'] == 1) { ?>text-success<?php } else { ?>text-error<?php } ?>"><?php if($options['enable_purge'] == 1) { print $text_enabled; ?>. <a href="<?php print HEALTH_URL; ?>&toggle_enable_purge"><?php print $text_disable; ?></a>
|
|
|
|
<?php if($purge_stat[0]) { print $text_last; ?>: <?php print $purge_stat[0]; ?>, <?php print $text_next; ?>: <?php print $purge_stat[1]; } ?>
|
|
|
|
<?php } else { print $text_disabled; ?>. <a href="<?php print HEALTH_URL; ?>&toggle_enable_purge"><?php print $text_enable; ?></a><?php } ?>
|
|
|
|
</span>
|
|
|
|
</div>
|
2013-04-05 10:16:33 +02:00
|
|
|
</div>
|
|
|
|
|
2013-04-22 23:03:40 +02:00
|
|
|
<div class="row">
|
|
|
|
<div class="cellhealthleft"><?php print $text_oldest_record; ?></div>
|
|
|
|
<div class="cellhealthright">
|
2013-08-28 09:56:37 +02:00
|
|
|
<?php print date(DATE_TEMPLATE, $oldestmessagets); ?>
|
2013-04-22 23:03:40 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
2013-04-05 10:16:33 +02:00
|
|
|
|
|
|
|
<div class="row">
|
|
|
|
<div class="cellhealthleft"><?php print $text_counters; ?></div>
|
|
|
|
<div class="cellhealthright">
|
|
|
|
<?php while(list($k, $v) = each($counters)) {
|
|
|
|
if(!is_numeric($k)) { ?>
|
|
|
|
<div class="row">
|
|
|
|
<div class="cellhealthright"><?php $a = preg_replace("/^_piler\:/", "", $k); if(isset($$a)) { print $$a; } else { print $k; } ?></div>
|
|
|
|
<div class="cellhealthright"><?php print $v; ?></div>
|
|
|
|
</div>
|
|
|
|
<?php } } ?>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="row">
|
|
|
|
<div class="cellhealthleft"><?php print $text_space_projection; ?></div>
|
|
|
|
<div class="cellhealthright">
|
|
|
|
<div class="row">
|
|
|
|
<div class="cellhealthright"><?php print $text_average_messages_day; ?></div>
|
|
|
|
<div class="cellhealthright"><?php print $averagemessages; ?></div>
|
|
|
|
</div>
|
|
|
|
<div class="row">
|
|
|
|
<div class="cellhealthright"><?php print $text_average_message_size; ?></div>
|
|
|
|
<div class="cellhealthright"><?php print $averagemessagesize; ?> + <?php print $averagesqlsize; ?> + <?php print $averagesphinxsize; ?></div>
|
|
|
|
</div>
|
|
|
|
<div class="row">
|
|
|
|
<div class="cellhealthright"><?php print $text_average_size_day; ?></div>
|
|
|
|
<div class="cellhealthright"><?php print $averagesizeday; ?></div>
|
|
|
|
</div>
|
|
|
|
<div class="row">
|
|
|
|
<div class="cellhealthright">"<?php print DATA_PARTITION; ?>" <?php print $text_partition_full; ?></div>
|
|
|
|
<div class="cellhealthright"><?php print $daysleftatcurrentrate[0]; ?> <?php print $text_years; ?>, <?php print $daysleftatcurrentrate[1]; ?> <?php print $text_months; ?>, <?php print $daysleftatcurrentrate[2]; ?> <?php print $text_days2; ?></div>
|
|
|
|
</div>
|
|
|
|
<div class="row">
|
|
|
|
<div class="cellhealthright"><?php print $text_usage_trend; ?></div>
|
|
|
|
<div class="cellhealthright"><?php if ( $usagetrend > 0 ) { print $text_usage_increasing; } elseif( $usagetrend < 0 ) { print $text_usage_decreasing; } else { print $text_usage_neutral; } ?></div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
2013-08-09 10:13:54 +02:00
|
|
|
<?php if($indexer_stat[0]) { ?>
|
|
|
|
<div class="row">
|
|
|
|
<div class="cellhealthleft"><?php print $text_indexer_job; ?></div>
|
|
|
|
<div class="cellhealthright"><?php print $text_last; ?>: <?php print $indexer_stat[0]; ?>, <?php print $text_next; ?>: <?php print $indexer_stat[1]; ?></div>
|
|
|
|
</div>
|
|
|
|
<?php } ?>
|
|
|
|
|
2013-04-05 10:16:33 +02:00
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
<div id="health2">
|
|
|
|
<?php if(isset($queues)) { ?>
|
|
|
|
<div class="row">
|
|
|
|
<div class="cellhealthleft"><?php print $text_queue_status; ?></div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<?php foreach ($queues as $queue) {
|
|
|
|
|
|
|
|
if(isset($queue['desc'])) { ?>
|
|
|
|
|
|
|
|
<div class="row">
|
|
|
|
<div class="cellhealthleft"><?php print $queue['desc']; ?></div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="row">
|
|
|
|
<div class="cellhealthright"><pre><?php print $queue['lines']; ?></pre></div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<?php }
|
|
|
|
} ?>
|
|
|
|
|
|
|
|
<?php } ?>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|