Get Pterodactyl server resource usage
ptero_get_server_resourcesCheck a server's live power state and resource usage: memory, disk, CPU, network, and uptime. See if it's running or offline and monitor current metrics.
Instructions
Get the live power state and current resource usage of a server: whether it is running, memory and disk in use, CPU percentage, network bytes in and out, and process uptime.
Use this to answer "is the server up?", "what is the memory doing?" or "how long has it been up?". This is the tool that reports running vs offline — ptero_get_server reports panel lifecycle status, which is a different thing.
Figures are cached by the panel for about 20 seconds, so calling repeatedly in quick succession returns identical numbers; that is the cache, not a frozen server. cpu_absolute is a percentage across all cores (200 means two full cores), and compares against the limits.cpu from ptero_get_server. When the server is offline every figure is 0. This tool does not explain why something is wrong — use ptero_get_console_log for that.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| server | No | Server short identifier (e.g. 1a2b3c4d). Omit to use PTERODACTYL_DEFAULT_SERVER. Call ptero_list_servers to discover valid identifiers. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| server | Yes | Server short identifier these figures describe. | |
| uptime_ms | Yes | Milliseconds since the process started. 0 when offline. | |
| disk_bytes | Yes | ||
| disk_human | Yes | ||
| cpu_absolute | Yes | CPU percent across all cores: 100 = one full core, 200 = two cores. | |
| is_suspended | Yes | ||
| memory_bytes | Yes | ||
| memory_human | Yes | ||
| uptime_human | Yes | ||
| current_state | Yes | Daemon power state: offline, starting, running, or stopping. | |
| network_rx_bytes | Yes | ||
| network_rx_human | Yes | ||
| network_tx_bytes | Yes | ||
| network_tx_human | Yes |