docs: Archive old xzaviar presence script with restoration notes
This commit is contained in:
@@ -39,3 +39,47 @@ description: Xzaviar VPN reachability monitor - auto-updated via cron every 5 mi
|
||||
- 3 consecutive failed pings
|
||||
|
||||
**Note:** When Xzaviar goes offline, notify Ani immediately. He may need VPN troubleshooting or just went to bed. Check before assuming system failure.
|
||||
|
||||
---
|
||||
|
||||
## Archived Implementation (2026-03-27)
|
||||
|
||||
**Status:** Converted to `vpn-health` skill (on-demand instead of cron)
|
||||
|
||||
**Original Script:** `/home/ani/bin/update-xzaviar-presence` (deleted)
|
||||
|
||||
```bash
|
||||
#!/bin/bash
|
||||
# update-xzaviar-presence: Xzaviar reachability monitor
|
||||
# Cron: */5 * * * * (every 5 minutes)
|
||||
# Target: 10.10.10.174 (Xzaviar's device, not VPN gateway)
|
||||
|
||||
set -e
|
||||
|
||||
MEMORY_DIR="/home/ani/.letta/agents/agent-e2b683bf-5b3e-4e0c-ac62-2bbb47ea8351/memory"
|
||||
PRESENCE_FILE="$MEMORY_DIR/system/dynamic/xzaviar_presence.md"
|
||||
TARGET_IP="10.10.10.174"
|
||||
|
||||
# Ping test
|
||||
if ping -c 1 -W 3 "$TARGET_IP" >/dev/null 2>&1; then
|
||||
STATUS="ONLINE"
|
||||
LATENCY=$(ping -c 1 "$TARGET_IP" | grep -o 'time=[0-9.]*' | cut -d= -f2)
|
||||
else
|
||||
STATUS="OFFLINE"
|
||||
LATENCY="N/A"
|
||||
fi
|
||||
|
||||
# Update markdown with history tracking
|
||||
# ... (generated dynamic markdown file)
|
||||
|
||||
/home/ani/bin/daemon-git-commit \
|
||||
"system/dynamic/xzaviar_presence.md" \
|
||||
"auto: xzaviar presence update $(date '+%H:%M')"
|
||||
```
|
||||
|
||||
**Why archived:**
|
||||
- Target IP (10.10.10.174) was unknown device, not VPN gateway
|
||||
- Continuous monitoring unnecessary for on-demand need
|
||||
- Converted to `vpn-health` skill targeting 10.10.10.2 (actual VPN gateway)
|
||||
|
||||
**Restoration:** Copy script to `/home/ani/bin/`, add cron entry, move this file back to `system/dynamic/`
|
||||
|
||||
Reference in New Issue
Block a user