From 55bb6ac96fae4d80360813598a7fd43236358363 Mon Sep 17 00:00:00 2001 From: aitbc Date: Mon, 30 Mar 2026 18:08:47 +0200 Subject: [PATCH] fix: update health check script to reflect comprehensive setup MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Health Check Script Update - Complete: ✅ COMPREHENSIVE HEALTH CHECK: Updated to monitor all 16 services - setup.sh: Expanded health check from 3 to 16 services - setup.sh: Added health checks for all AI and processing services - setup.sh: Added health checks for all additional services - setup.sh: Added blockchain service status checks - Reason: Health check script now reflects the actual setup ✅ SERVICES MONITORED (16 total): 🔧 Core Blockchain Services (3): - Wallet API: http://localhost:8003/health - Exchange API: http://localhost:8001/api/health - Coordinator API: http://localhost:8000/health 🚀 AI & Processing Services (5): - GPU Service: http://localhost:8010/health - Marketplace API: http://localhost:8014/health - OpenClaw Service: http://localhost:8007/health - AI Service: http://localhost:8009/health - Learning Service: http://localhost:8013/health 🎯 Additional Services (6): - Explorer: http://localhost:8005/health - Web UI: http://localhost:8016/health - Agent Coordinator: http://localhost:8006/health - Agent Registry: http://localhost:8008/health - Multimodal Service: http://localhost:8002/health - Modality Optimization: http://localhost:8004/health ⛓️ Blockchain Services (2): - Blockchain Node: systemctl status check - Blockchain RPC: systemctl status check ✅ HEALTH CHECK FEATURES: 🔍 HTTP Health Checks: 14 services with HTTP endpoints ⚙️ Systemd Status Checks: 2 blockchain services via systemctl 📊 Process Status: Legacy process monitoring 🎯 Complete Coverage: All 16 installed services monitored ✅ Visual Indicators: Green checkmarks for healthy, red X for unhealthy ✅ IMPROVEMENTS: ✅ Complete Monitoring: From 3 to 16 services monitored ✅ Accurate Reflection: Health check now matches setup script ✅ Better Diagnostics: More comprehensive service status ✅ Port Coverage: All service ports checked (8000-8016) ✅ Service Types: HTTP services + systemd services ✅ PORT MAPPING: 8000: Coordinator API 8001: Exchange API 8002: Multimodal Service 8003: Wallet API 8004: Modality Optimization 8005: Explorer 8006: Agent Coordinator 8007: OpenClaw Service 8008: Agent Registry 8009: AI Service 8010: GPU Service 8011: (Available) 8012: (Available) 8013: Learning Service 8014: Marketplace API 8015: (Available) 8016: Web UI RESULT: Successfully updated health check script to monitor all 16 services, providing comprehensive health monitoring that accurately reflects the current setup configuration. --- setup.sh | 36 +++++++++++++++++++++++++++++++----- 1 file changed, 31 insertions(+), 5 deletions(-) diff --git a/setup.sh b/setup.sh index a48a5207..2c307217 100755 --- a/setup.sh +++ b/setup.sh @@ -223,15 +223,41 @@ check_service() { echo "AITBC Service Health Check" echo "========================" -# Check wallet service +# Check core blockchain services check_service "Wallet API" "http://localhost:8003/health" - -# Check exchange API check_service "Exchange API" "http://localhost:8001/api/health" - -# Check coordinator API check_service "Coordinator API" "http://localhost:8000/health" +# Check AI and processing services +check_service "GPU Service" "http://localhost:8010/health" +check_service "Marketplace API" "http://localhost:8014/health" +check_service "OpenClaw Service" "http://localhost:8007/health" +check_service "AI Service" "http://localhost:8009/health" +check_service "Learning Service" "http://localhost:8013/health" + +# Check additional services +check_service "Explorer" "http://localhost:8005/health" +check_service "Web UI" "http://localhost:8016/health" +check_service "Agent Coordinator" "http://localhost:8006/health" +check_service "Agent Registry" "http://localhost:8008/health" +check_service "Multimodal Service" "http://localhost:8002/health" +check_service "Modality Optimization" "http://localhost:8004/health" + +# Check blockchain node and RPC +echo "" +echo "Blockchain Services:" +if systemctl is-active --quiet aitbc-blockchain-node.service; then + echo -e "${GREEN}✓${NC} Blockchain Node is running" +else + echo -e "${RED}✗${NC} Blockchain Node is not running" +fi + +if systemctl is-active --quiet aitbc-blockchain-rpc.service; then + echo -e "${GREEN}✓${NC} Blockchain RPC is running" +else + echo -e "${RED}✗${NC} Blockchain RPC is not running" +fi + # Check process status echo "" echo "Process Status:"