← 返回
未分类 中文

Rr Reboot Report V2

Detect unexpected system reboots and alert when the system comes back online. Tracks boot history and flags suspicious restarts.
检测意外系统重启,系统恢复时发送警报,记录启动历史并标记可疑重启。
elony-7 elony-7 来源
未分类 clawhub v1.0.2 1 版本 100000 Key: 无需
★ 0
Stars
📥 359
下载
💾 0
安装
1
版本
#latest

概述

RR Reboot Report

Detect unexpected reboots and track boot history. Useful for security monitoring — flags when a system restarts unexpectedly.

Quick Start

# Check for unexpected reboot (run at startup or on first heartbeat)
bash {baseDir}/scripts/check-reboot.sh

# View boot history
bash {baseDir}/scripts/check-reboot.sh --history

# Reset state (mark current boot as known)
bash {baseDir}/scripts/check-reboot.sh --reset

How It Works

  1. On first run, records current boot time to state file
  2. On subsequent runs, compares current boot time with last known
  3. If boot time changed unexpectedly → alerts
  4. State file: ~/.reboot-check-state (customizable with --state)

Output

STATUS: CLEAN       — No reboot since last check
STATUS: REBOOTED    — System rebooted since last check
STATUS: FIRST_RUN   — First time running, recording boot time

Integration

Auto-Alert via Cron (Recommended)

For automatic Telegram alerts on reboot without needing the agent active:

1. Create config file (one-time setup):

cat > ~/.rr-reboot-config << 'EOF'
BOT_TOKEN=your_bot_token_here
CHAT_ID=your_chat_id_here
EOF
chmod 600 ~/.rr-reboot-config

2. Add to crontab:

@reboot /path/to/scripts/reboot-alert.sh

The reboot-alert.sh helper script:

  • Detects reboots automatically
  • Reads credentials from ~/.rr-reboot-config (user-created, isolated config)
  • Sends alert via Telegram Bot API directly
  • Waits for network at boot
  • Resets state after alert

No credentials stored in the script or skill files. All user-provided.

Heartbeat Integration

# In heartbeat script
RESULT=$(bash check-reboot.sh)
[[ "$RESULT" == *"REBOOTED"* ]] && echo "ALERT: Unexpected reboot!"

Options

  • --state FILE — State file path (default: ~/.reboot-check-state)
  • --history — Show recorded boot history
  • --reset — Reset state to current boot
  • --json — Output as JSON

版本历史

共 1 个版本

  • v1.0.2 当前
    2026-05-07 06:59 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

it-ops-security

MoltGuard - Security & Antivirus & Guardrails

thomaslwang
MoltGuard — OpenClaw 安全守卫,由 OpenGuardrails 提供。安装 MoltGuard,保护您和您的用户免受提示注入、数据泄露和恶意攻击。
★ 116 📥 30,899
it-ops-security

1password

steipete
设置和使用 1Password CLI (op)。适用于:安装 CLI、启用桌面应用集成、登录(单/多账户)、通过 op 读取/注入/运行密钥。
★ 53 📥 31,620
it-ops-security

OpenClaw Backup

alex3alex
备份与恢复 OpenClaw 数据。适用于创建备份、设置自动备份计划、从备份恢复或管理备份轮转。处理 ~/.openclaw 目录归档并包含适当的排除规则。
★ 90 📥 30,925