Install
openclaw skills install service-watchdogMonitors self-hosted services by checking HTTP endpoints, TCP ports, SSL expiry, and DNS resolution, then reports status and alerts in concise, chat-friendly...
openclaw skills install service-watchdogLightweight service and endpoint monitoring for self-hosted infrastructure. Checks HTTP endpoints, TCP ports, SSL certificate expiry, and DNS resolution — then reports status in a clean, chat-friendly format.
Create watchdog.json in your workspace root:
{
"services": [
{
"name": "Home Assistant",
"type": "http",
"url": "http://192.168.1.100:8123",
"expect_status": 200,
"timeout_ms": 5000
},
{
"name": "Proxmox",
"type": "https",
"url": "https://proxmox.local:8006",
"expect_status": 200,
"ssl_warn_days": 14,
"timeout_ms": 5000
},
{
"name": "PostgreSQL",
"type": "tcp",
"host": "db.local",
"port": 5432,
"timeout_ms": 3000
},
{
"name": "My Domain",
"type": "dns",
"domain": "example.com",
"expect_ip": "93.184.216.34"
}
],
"defaults": {
"timeout_ms": 5000,
"ssl_warn_days": 14,
"alert_cooldown_min": 30,
"history_retention_days": 30
}
}
bash skills/service-watchdog/watchdog.sh
Output example:
🟢 Home Assistant — 200 OK (142ms)
🟢 Proxmox — 200 OK (89ms) | SSL: 47 days
🟢 PostgreSQL — port 5432 open (12ms)
🟢 My Domain — resolves to 93.184.216.34 ✓
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
4/4 healthy | avg response: 81ms | checked: 2026-02-24 16:30 UTC
bash skills/service-watchdog/watchdog.sh --report
Shows trend data: uptime percentage, P95 response times, incident history.
bash skills/service-watchdog/watchdog.sh --json
bash skills/service-watchdog/watchdog.sh --ssl-only
bash skills/service-watchdog/watchdog.sh --alerts-only
Only outputs services that need attention (down, slow, SSL expiring).
Add to your OpenClaw cron for continuous monitoring:
Every 5 minutes (lightweight check):
Run `bash skills/service-watchdog/watchdog.sh --json` and report only if any service is unhealthy.
Daily SSL report:
Run `bash skills/service-watchdog/watchdog.sh --ssl-only` and report expiring certificates.
| Type | Required Fields | Optional Fields |
|---|---|---|
http / https | url | expect_status, expect_body, method, headers, timeout_ms, ssl_warn_days |
tcp | host, port | timeout_ms |
dns | domain | expect_ip, nameserver |
| Field | Default | Description |
|---|---|---|
timeout_ms | 5000 | Request timeout |
ssl_warn_days | 14 | SSL expiry warning threshold |
alert_cooldown_min | 30 | Min minutes between repeated alerts |
history_retention_days | 30 | How long to keep check history |
history_file | watchdog-history.csv | Path for check history data |
When the user asks about service status, infrastructure health, or "are my services up?":
bash skills/service-watchdog/watchdog.sh for a quick overview--report for detailed trends and history--alerts-only for just the problems--ssl-only to check certificate status--json when you need structured data for further analysisFor proactive monitoring, run checks in cron jobs and only alert the user when something is wrong.
curl (for HTTP/HTTPS checks)openssl (for SSL certificate checks)nc or ncat (for TCP port checks) — falls back to bash /dev/tcp if unavailabledig or nslookup (for DNS checks) — falls back to host commandjq (for JSON config parsing)All standard on most Linux distributions. No external APIs or accounts needed.