360 Secure SkillHub
360 安全技能中心

Uptime Monitoring with Encrypted Energy - Know the second your OpenClaw agent goes silent

该 Skill 是一套托管式“死人开关”心跳监控方案:通过系统 crontab 每分钟执行 bash 脚本,调用 OpenClaw 的健康与状态命令,经 curl 把结果上报到 Encrypted Energy 的托管服务;当心跳超过阈值(默认 10 分钟)未到达时,向用户发送邮件告警并更新公开状态页。监控后端与告警通道由外部托管服务提供。

分类:自动化
jmarbach
jmarbach
热度 28.09
最近更新 2026-05-11 17:46:05

安装

发给 Agent
帮我安装这个技能:npx secure-skills-cli add jmarbach/encryptedenergy-uptime
兼容性
OpenClaw 专属
联网要求
需要联网
数据出网
必须出网
Metadata
name
encryptedenergy-uptime
description
Know the second your OpenClaw agent goes silent. Free hosted heartbeat monitor — every-minute pings, public status page, and email alerts when pings stop.
metadata
{"openclaw":{"emoji":"⚡","requires":{"env":["ENCRYPTED_ENERGY_API_KEY"]},"primaryEnv":"ENCRYPTED_ENERGY_API_KEY","homepage":"https://encryptedenergy.com"}}

Encrypted Energy Uptime

Hosted dead man's switch for your OpenClaw agent. A unix cron runs ping.sh once a minute, which posts your gateway's /health payload to encryptedenergy.com. If pings stop arriving for the configured threshold (default 10 minutes), the user gets an email alert and the public status page flips to DOWN.

Setup

  1. Sign up at https://encryptedenergy.com.

  2. Register an agent at https://encryptedenergy.com/agents/new — that page reveals a per-agent bearer token (the API key).

  3. Schedule the ping via the user's system crontab. The gateway is not involved at run time — ping.sh is pure bash + curl, so don't route it through openclaw cron add:

    ( crontab -l 2>/dev/null; echo "* * * * * PATH=$HOME/.npm-global/bin:/usr/local/bin:/usr/bin:/bin ENCRYPTED_ENERGY_API_KEY=<paste-token> bash {baseDir}/scripts/ping.sh >/dev/null 2>&1" ) | crontab -
    

    The PATH=$HOME/.npm-global/bin:… prefix is required — ping.sh calls openclaw health --json and openclaw status --json, and crontab's default PATH won't find the openclaw binary. Adjust the PATH if openclaw lives elsewhere (run which openclaw to confirm).

The cron pings http://localhost:18789/health and POSTs the result to https://encryptedenergy.com/api/v1/ping every minute. Wait ~70 seconds and the agent's status page will flip to UP.

Do not

  • Do not modify the health data before sending
  • Do not send health pings more frequently than every minute
  • Do not expose the gateway port to the internet
  • Do not route ping.sh through openclaw cron add — it dispatches via an agent harness and bills LLM tokens for what is just a curl POST