#!/bin/bash # /root/.openclaw/workspace/scripts/12-monitoring.sh set -e echo "📊 系统监控..." echo "=" * 60 # 服务状态 echo -e "\n=== 服务状态 ===" cd /opt/mem0-center && docker compose ps # Qdrant 健康 echo -e "\n=== Qdrant 健康 ===" curl -s http://localhost:6333/ | python3 -m json.tool # 内存使用 echo -e "\n=== 内存使用 ===" free -h # 磁盘使用 echo -e "\n=== 磁盘使用 ===" df -h /opt/mem0-center # Tailscale 状态 echo -e "\n=== Tailscale 状态 ===" tailscale status 2>/dev/null | grep mem0-general-center || echo "Tailscale 未运行" # mem0 状态 echo -e "\n=== mem0 状态 ===" cd /root/.openclaw/workspace/skills/mem0-integration && python3 -c " from mem0_client import Mem0Client client = Mem0Client() status = client.get_status() print(f'初始化:{\"✅\" if status[\"initialized\"] else \"❌\"}') print(f'Qdrant: {status[\"qdrant\"]}') " echo -e "\n" echo "=" * 60 echo "✅ 监控完成"