OpenMediaVault
0.6 (Kralizec)
The open network attached storage solution
|
Static Public Member Functions | |
static | getRootDeviceFile () |
static | isRootDeviceFile ($deviceFile) |
static | getLoginDefs () |
static | getNextDevice ($type, $name) |
static | uptime ($indexed=FALSE) |
static | getLoadAverage () |
static | getMemoryStats () |
static | getCPUStats () |
Additional Inherited Members | |
![]() | |
__construct () | |
getLastError () | |
![]() | |
setLastError ($error) | |
debug () | |
This file is part of OpenMediaVault.
OpenMediaVault is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or any later version.
OpenMediaVault 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 General Public License for more details.
You should have received a copy of the GNU General Public License along with OpenMediaVault. If not, see http://www.gnu.org/licenses/. Helper class that provides various functions regarding the Linux system.
|
static |
Get CPU statistics.
|
static |
Get load average in regard to both the CPU and IO over time.
|
static |
Get the /etc/login.defs configuration
|
static |
Get memory statistics.
|
static |
Get the next free device name.
type | The type of the device, e.g. disk or iface |
name | The device name, e.g. sda, hda, md, eth or bond |
|
static |
Get the device file where the operating system is installed on (e.g. /dev/sda1).
|
static |
Check if the given device file contains the operating system.
deviceFile | The devicefile to check, e.g. /dev/sda1. |
|
static |
Tell how long the system has been running.
indexed | Set to FALSE to get the uptime as string, otherwise an indexed array with the fields seconds, minutes, hours and days will be returned. Defaults to FALSE. |