cPanel module
ServerInformation
1 functions, invoked through the cpanel_uapi tool.
scope cpanel:uapi
Call any function with
cpanel_uapi(service_id, module="ServerInformation", function, params). Live availability depends on the cPanel features JetHost has enabled on your account — call list_cpanel_operations to see what is active.get_information GET#
Return service and device status
This function returns the status of each cPanel service (daemon), device, and server health check point on your server.
No parameters.
Response — normalized as { ok, data, errors[], warnings[] }; data is an array of:
errorstring
An error message about why system couldn't read a resource's status file.
namestring
The cPanel services, devices, and server health check points on the server. A valid cPanel service. CPU Count — The number of CPUs on the server. Disk mount (mount) — The server's disk mounts, where mount represents the disk mount location. Server Load — The server's CPU load. Memory Used — The server's current memory use. Swap — The server's swap space.
statusany
Whether the resource is enabled or disabled. 1 — Enabled. 0 — Disabled. * unknown — The system couldn't determine the resource's status.
typestring
The type of resource. device metric * service
One of: device metric service
valueany
The resource's status. up down unknown The current resource usage.
versionstring
The resource's software version. Important: The function only returns this value if a valid software version exists.