Install
openclaw skills install rr-reboot-report-v2Detect unexpected system reboots and alert when the system comes back online. Tracks boot history and flags suspicious restarts.
openclaw skills install rr-reboot-report-v2Detect unexpected reboots and track boot history. Useful for security monitoring — flags when a system restarts unexpectedly.
# 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
~/.reboot-check-state (customizable with --state)STATUS: CLEAN — No reboot since last check
STATUS: REBOOTED — System rebooted since last check
STATUS: FIRST_RUN — First time running, recording boot time
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:
~/.rr-reboot-config (user-created, isolated config)No credentials stored in the script or skill files. All user-provided.
# In heartbeat script
RESULT=$(bash check-reboot.sh)
[[ "$RESULT" == *"REBOOTED"* ]] && echo "ALERT: Unexpected reboot!"
--state FILE — State file path (default: ~/.reboot-check-state)--history — Show recorded boot history--reset — Reset state to current boot--json — Output as JSON