From 855c3af7f09d79c68eafc3d892636922167b51dd Mon Sep 17 00:00:00 2001 From: "Ani (Daemon)" Date: Fri, 27 Mar 2026 11:48:43 -0400 Subject: [PATCH] docs: Archive old xzaviar presence script with restoration notes --- system/dynamic/disabled/xzaviar_presence.md | 44 +++++++++++++++++++++ 1 file changed, 44 insertions(+) diff --git a/system/dynamic/disabled/xzaviar_presence.md b/system/dynamic/disabled/xzaviar_presence.md index 34957c0..b764388 100644 --- a/system/dynamic/disabled/xzaviar_presence.md +++ b/system/dynamic/disabled/xzaviar_presence.md @@ -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/`