*
* @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 FormatMegabytes($byte) {
$unim = ['MB', 'GB', 'TB', 'PB'];
$count = 0;
while ($byte >= 1024) {
$count++;
$byte /= 1024;
}
return number_format($byte, 2, '.', '.') . ' ' . $unim[$count];
}
/** @var \OCA\ServerInfo\Resources\Memory $memory */
$memory = $_['memory'];
/** @var \OCA\ServerInfo\Resources\Disk[] $disks */
$disks = $_['diskinfo'];
?>
t('Operating System')); ?>: |
|
t('CPU')); ?>: |
|
t('Memory')); ?>: |
getMemTotal())) ?> |
t('Server time')); ?>: |
|
t('Uptime')); ?>: |
|
t('Load')); ?>
t('Memory')); ?>
t('Disk')); ?>
getDevice())); ?>
t('Mount')); ?>:
getMount()); ?>
t('Filesystem')); ?>:
getFs()); ?>
t('Size')); ?>:
getUsed() + $disk->getAvailable())); ?>
t('Available')); ?>:
getAvailable())); ?>
t('Used')); ?>:
getPercent()); ?>
t('You will get a notification once one of your disks is nearly full.')); ?>
t('Files:')); ?>
t('Storages:')); ?>
t('Free Space:')); ?>
t('Network')); ?>
t('Hostname')); ?>:
t('DNS')); ?>:
t('Gateway')); ?>:
t('Status')); ?>:
t('Speed')); ?>:
t('MAC')); ?>:
t('IPv4')); ?>:
t('IPv6')); ?>:
t('Active users')); ?>
t('Shares')); ?>
t('PHP')); ?>
t('Version:')); ?>
t('Memory Limit:')); ?>
t('Max Execution Time:')); ?>
t('Upload max size:')); ?>
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:')); ?>
t('Appending "?format=json" at the end of the URL gives you the result in JSON.')); ?>