ONO_Core_HostOS is responsible for low level communication with the host operating system.
Using this module in production projects should be avoided whenever possible, try to use ONO::IO or other library / toolbox features instead.
Returns a list of CPAN Perl Modules that are recommended for ONO, and that are required for all ONO features to be fully functional.
Switches:
Return the number of current CPU cores.
Return the current CPU load as an array (UNIX-like format).
Return the current CPU load, which is being cached for 5 seconds. This returns a scalar value, which is the current load.
CPU load threshold test, using the format cpu_load_pass(percent).
Returns 1 if load LOWER than percent Returns 0 if load HIGHER than percent
Example: ONO_Core_HostOS->cpu_load_pass(50) will thus allow to execute code if the ENTIRE load of the system is LOWER than 50 percent
Don't use this function here if possible, use ONO::IO->sysload() instead.
Return the current CPU load as percentage, taking multiple CPU cores and multithreading into consideration.
By default, this returns 3x percentage, 3x absolute, plus the number of cores.
Returns the host os type, either BSD/UNIX or MacOS. This is required at the ONO::Core level, as MacOS is different from other systems in some ways. Linux distributions will simply be identified as BSD/UNIX systems.
Return current total memory of the system.
Return current memory load, detailed (total, used, free, percent, percent).
Return current memory load, as percentage.
Return the current MySQL version.
Return the current Perl version.
Returns the host os type, plus some additional system information.
Return the current system status, or system health.
Switches:
List UNIX users who are currently online on the host OS.
Internal function, helps to detect CPU cores. Don't use this, use cpu_cores() instead.