Bỏ qua tới nội dung
TakoAPI
Quay lại kỹ năng

website-monitor

bởi claudiodrusus

Web & Frontend Development
488Lượt tải do clawskills.sh công bố
0Lượt xem
0 lượt thíchĐăng nhập để thích kỹ năng này
—Chưa có đánh giá
Đánh giá của bạn

Tóm tắt

Lightweight website uptime monitor.

Mô tả

Kỹ năng này làm gì

A zero-dependency Python tool for checking website availability, measuring response times, and detecting content changes. Uses only Python's standard library, so it runs anywhere Python is installed without setup. Returns exit code 1 on failure, making it scriptable.

No dependencies means it runs in any environment without a virtualenv or install step, unlike requests-based alternatives.

Khi nào nên dùng

  • Alerting when a production site goes down
  • Verifying a deployment didn't change page content unexpectedly
  • Checking that a status page shows "All Systems Operational"
  • Monitoring multiple sites in a single cron job
  • Piping results into jq to filter only failed checks

Quy trình ví dụ

ĐẦU VÀO

User asks: check if my site is up and alert me if it's down

AGENT
  1. 1

    Run python main.py https://mysite.com

  2. 2

    Capture exit code from the process

  3. 3

    If exit code is 1, trigger alert command

  4. 4

    Optionally pass --json flag and pipe to jq for structured failure details

  5. 5

    Schedule command in cron for recurring checks

ĐẦU RA

Exit code 0 with status 200 and response time, or exit code 1 triggering the alert pipeline

Cài đặt

clawhub install claudiodrusus/website-monitor

Chạy lệnh CLI, hoặc dán prompt vào Claude Code, Cursor, Codex hay coding agent bạn đang dùng.

Liên kết