Skip to content
Back to skills

Server Health

ASecurity

Check the health of a remote server the user administers — CPU, memory, disk, swap, load, uptime, failed systemd units, listening ports, pending security updates, or capacity headroom. Use for questions like "is my box running out of disk", "why is prod slow", "what is eating memory on the web server", "does anything need a reboot". For remote hosts the user reaches over SSH, not the local machine and not a local dev server.

  • 45 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added September 23, 2026
ai-agentsshellbashsecurity

Security analysis

A100/100

Scanned September 23, 2026

npx -y skills add OpsMaxx/OpsMaxx --skill server-health --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Server Health?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Server Health
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/opsmaxx-server-health/badge)](https://www.skillsdirectory.com/skills/opsmaxx-server-health)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: server-health
description: Check the health of a remote server the user administers — CPU, memory, disk, swap, load, uptime, failed systemd units, listening ports, pending security updates, or capacity headroom. Use for questions like "is my box running out of disk", "why is prod slow", "what is eating memory on the web server", "does anything need a reboot". For remote hosts the user reaches over SSH, not the local machine and not a local dev server.
---

# Checking a server's health

Two rules first, because getting them wrong wastes a turn:

- **Servers are addressed by friendly name only.** Call `list_servers` first; the names it
  returns are the only valid `serverName` values. A hostname, an IP or an SSH string will not
  resolve, and you never get to see one.
- **Ask before you assume.** `describe_capabilities` says what this session may actually do.
  Reading it beats discovering a boundary by tripping over it — a denied call is not a call to
  retry in a different shape.

## Order to work in

1. `list_servers` — get the name.
2. `get_server_metrics` — CPU, memory, disk, uptime, **failed units and listening ports**. This
   is usually the whole answer. Do not reach for `execute_command` to run `top`, `free` or `df`:
   the dedicated tool states its intent exactly, so the user's path rules apply precisely instead
   of being guessed at from a command string, and it is less likely to need an approval prompt.
3. `get_host_facts` — only when the question is what the server *is* rather than how it is
   doing: distro, arch, virtualisation, pending and security updates, reboot-pending.
4. `get_capacity_trends` — only when the question is about direction ("will it fill up"), not
   the current number. It forecasts over a window of days and answers in sentences, one per
   metric. Every number it states carries the window it came from AND how much of that window
   was sampled: OpsMaxx only collects while it is running, so "from 21 days of data" can mean
   nine parts of ten, or two. A refusal names the rule that stopped it — pass it on rather than
   reading it as "there is room".
5. `list_alerts` — what already fired, so you are not re-diagnosing something known.

`execute_command` is for work that genuinely needs a shell. Reach for it after the tools above,
not instead of them.

## Reading the result

`get_host_facts` dates itself twice — when the facts were collected, and when the package
metadata behind the update counts was last refreshed. Both can be stale independently, and a
fresh reading off a months-old package cache is worthless. Say which one you relied on.

Escalation shells (`sudo -i`, `su`, `sudo bash`) are refused whatever the permissions say.
`sudo -n` is used for privileged reads and is normally available.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.