← 返回 Skills 市场
702
总下载
2
收藏
2
当前安装
1
版本数
在 OpenClaw 中安装
/install service-watchdog
功能描述
Monitors self-hosted services by checking HTTP endpoints, TCP ports, SSL expiry, and DNS resolution, then reports status and alerts in concise, chat-friendly...
安全使用建议
This skill appears coherent and limited to local monitoring, but before installing: 1) inspect the full watchdog.sh for any alerting/webhook blocks (the SKILL.md doesn't describe sending data to external endpoints; if the script contains webhook integrations, verify the endpoints and auth are ones you expect); 2) be aware it will create and append a history CSV in the workspace (set WATCHDOG_WORKSPACE or use --no-history if you don't want files written); 3) run it in a controlled environment (container or non-sensitive workspace) first to confirm behavior; 4) ensure only allowed hosts/domains are placed in watchdog.json to avoid scanning unintended targets; and 5) verify required utilities (curl, jq, openssl, nc/dig) are the versions you trust. If you want higher assurance, provide the full, untruncated watchdog.sh for a line-by-line audit.
功能分析
Type: OpenClaw Skill
Name: service-watchdog
Version: 1.0.0
The `watchdog.sh` script is highly vulnerable to shell injection, allowing for Remote Code Execution (RCE). Values read from the `watchdog.json` configuration file (e.g., `url`, `host`, `port`, `domain`, `method`) are directly interpolated into commands executed via `curl`, `nc`, `ncat`, `dig`, `nslookup`, `host`, and `openssl` without proper sanitization. A critical example is the `check_tcp` function's fallback to `bash -c "echo >/dev/tcp/${host}/${port}"`, where a malicious `host` value in `watchdog.json` could lead to arbitrary command execution. While the skill's stated purpose is benign, these vulnerabilities pose a significant security risk if an attacker can control the `watchdog.json` file.
能力评估
Purpose & Capability
Name/description match the implementation: the script performs HTTP, TCP, DNS, and SSL checks and produces summary, JSON, and report outputs. Declared dependencies (curl, openssl, nc/ncat or /dev/tcp, dig/nslookup/host, jq) align with the stated features.
Instruction Scope
SKILL.md instructs the agent to run the included bash script against a user-created watchdog.json. The script reads only the config file and writes a local history CSV by default; it does not request unexplained system-wide reads or external accounts in the provided content. Behavior (cron usage, --json, --report, --ssl-only, --alerts-only) matches the documented feature set.
Install Mechanism
No install spec — this is instruction-only with an included shell script. That reduces install-time risk; dependencies are standard system utilities. Nothing is downloaded or extracted at install time.
Credentials
No required credentials or secret environment variables. Optional env vars (WATCHDOG_CONFIG, WATCHDOG_WORKSPACE) are reasonable and scoped to choosing config/workspace. The script writes a history file in the workspace (default watchdog-history.csv), which is expected for monitoring history.
Persistence & Privilege
The skill is not always:true and does not request elevated privileges; it can run autonomously (platform default). It does persist local history to a CSV in the workspace and can be run from cron as recommended — users should be aware it will create/append files in whatever workspace it runs from.
如何使用
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install service-watchdog - 安装完成后,直接呼叫该 Skill 的名称或使用
/service-watchdog触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
Initial release: HTTP/HTTPS, TCP, DNS, SSL monitoring with history tracking, JSON output, alerts-only mode, and cron integration
元数据
常见问题
Service Watchdog 是什么?
Monitors self-hosted services by checking HTTP endpoints, TCP ports, SSL expiry, and DNS resolution, then reports status and alerts in concise, chat-friendly... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 702 次。
如何安装 Service Watchdog?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install service-watchdog」即可一键安装,无需额外配置。
Service Watchdog 是免费的吗?
是的,Service Watchdog 完全免费(开源免费),可自由下载、安装和使用。
Service Watchdog 支持哪些平台?
Service Watchdog 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 Service Watchdog?
由 mariusfit(@mariusfit)开发并维护,当前版本 v1.0.0。
推荐 Skills