Service Status
ubuntu_service_statusCheck systemd service status on an Ubuntu server, providing full systemctl output, parsed active/enabled states, recent logs, PID, and memory usage.
Instructions
Show detailed status of one systemd service: the full 'systemctl status' output (state, recent log lines, PID, memory) plus whether it is enabled at boot.
Args:
server (string): server name from the inventory (see ubuntu_list_servers)
service (string): unit name, e.g. 'nginx' or 'ssh'
Returns: raw status text plus parsed active_state ('active'/'inactive'/'failed') and enabled state ('enabled'/'disabled'/'static').
Error handling: reports if the unit does not exist and suggests ubuntu_list_services to find the right name.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| server | Yes | Server name from the inventory (see ubuntu_list_servers) | |
| service | Yes | systemd unit name, e.g. 'nginx' or 'nginx.service' |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| server | Yes | ||
| status | Yes | ||
| service | Yes | ||
| active_state | Yes | ||
| enabled_state | Yes |