Add Codex marketplace and Server Ops plugin
This commit is contained in:
1 parent
33285dcc8c
commit
42a6d05672
38 files changed
+2464
-1
No files matched your search
@@ -0,0 +1,32 @@
|
||||
---
|
||||
name: server-healthcheck
|
||||
description: Проверяет состояние Linux-сервера и обновляет инвентарь. Охватывает ресурсы, сбойные службы, контейнеры, слушающие порты и фаервол. Проверки выполняются без изменений на сервере.
|
||||
---
|
||||
|
||||
Use the [server-ops checkout](../server-ops/SKILL.md#select-the-checkout)
|
||||
for all repository paths and commands in this skill.
|
||||
|
||||
Use [server-operate](../server-operate/SKILL.md) to resolve the target and
|
||||
connect with the pinned SSH runner. Check the host unless the request names
|
||||
a container. Use the recorded inventory to identify expected services and
|
||||
choose the checks relevant to the request.
|
||||
|
||||
| Check | Example read-only commands |
|
||||
| --- | --- |
|
||||
| Identity and resources | `hostname`, `uname -srmo`, `uptime`, `free -m`, `df -hPT -l`, `df -iP -l` |
|
||||
| Systemd when present | `systemctl is-system-running`, `systemctl --failed --no-pager`, `systemctl is-active UNIT` for expected services |
|
||||
| Containers when used | `docker ps -a --format '{{.Names}}\t{{.Status}}'` against the intended local engine, or the equivalent for the installed runtime |
|
||||
| Listeners and firewall | `ss -lntup` and the active firewall's read-only status, such as `ufw status verbose` |
|
||||
|
||||
- Check service status and recent logs for observed failures. For example,
|
||||
use `journalctl -u UNIT --since '30 minutes ago' -n 50 --no-pager`.
|
||||
- Interpret each result in context. Systemd returns a nonzero status for a
|
||||
degraded host. Check active firewall rules independently of the firewall
|
||||
unit state. The disk commands above cover local filesystems. Report when
|
||||
permissions, the container engine, or the network namespace limit visibility.
|
||||
- For low free space or inode exhaustion, use [disk-pressure](../disk-pressure/SKILL.md).
|
||||
- Probe a known read-only local health endpoint when application health is
|
||||
in scope. Use [service-reachability](../service-reachability/SKILL.md) for
|
||||
external endpoint or TLS checks.
|
||||
- Report the observation point, each finding and exit status, and any gaps.
|
||||
Update the inventory with verified changes and [record the result](../server-operate/SKILL.md#record-the-result).
|
||||
Reference in new issue
Block a user