* * @license GNU AGPL version 3 or any later version * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as * published by the Free Software Foundation, either version 3 of the * License, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Affero General Public License for more details. * * You should have received a copy of the GNU Affero General Public License * along with this program. If not, see . * */ script('serverinfo', 'script'); script('serverinfo', 'smoothie'); script('serverinfo', 'Chart.min'); style('serverinfo', 'style'); function FormatBytes($byte) { $unim = array('B','KB','MB','GB','TB','PB'); $count = 1; while ($byte>=1024) { $count++; $byte = $byte/1024; } return number_format($byte,2,'.','.').' '.$unim[$count]; } ?>

'); p($_['hostname']); ?>

t('Operating System').': '); ?>

t('CPU').': '); ?>

t('Memory').': '); ?>

t('Server time').': '); ?>

t('Uptime').': '); ?>

t('Time Servers').': '); ?>

t('Load'));?>

t('Memory'));?>

    

    

'); p($l->t('Disk')); ?>

'); echo('

'); echo(''); echo('
'); echo('

'.basename($disk['device']).'

'); echo('

'); p($l->t('Mount').': '); echo(''.$disk['mount'].''); echo('

'); p($l->t('Filesystem').': '); echo(''.$disk['fs'].''); echo('

'); p($l->t('Size').': '); echo(''.FormatBytes($disk['used']+$disk['available']).''); echo('

'); p($l->t('Available').': '); echo(''.FormatBytes($disk['available']).''); echo('

'); p($l->t('Used').': '); echo(''.$disk['percent'].''); echo('

'); } ?>
t('You will get a notification once one of your disks is nearly full.')); ?>

t('Files:'));?>

t('Storages:'));?>

t('Free Space:'));?>

'); p($l->t('Network')); ?>

t('Hostname').': '); ?>

t('DNS').': '); ?>

t('Gateway').': '); ?>

'); echo('

'.$interface['interface'].'

'); echo('

'); p($l->t('Status').': '); echo(''.$interface['status'].''); echo('

'); p($l->t('Speed').': '); echo(''.$interface['speed'].' '.$interface['duplex'].''); echo('

'); if(!empty($interface['mac'])) { p($l->t('MAC').': '); echo(''.$interface['mac'].''); echo('

'); } p($l->t('IPv4').': '); echo(''.$interface['ipv4'].''); echo('

'); p($l->t('IPv6').': '); echo(''.$interface['ipv6'].''); echo('

'); } ?>

t('Active users'));?>


'

t('Total users:'));?>

t('Shares'));?>


'

'); p($l->t('PHP')); ?>

t('Version:'));?>

t('Memory Limit:'));?>

t('Max Execution Time:'));?>

t('Upload max size:'));?>

'); p($l->t('Database')); ?>

t('Type:'));?>

t('Version:'));?>

t('Size:'));?>

t('External monitoring tool'));?>

t('You can connect an external monitoring tool by using this end point:')); ?>

">