╔════════════════════════════════════════════════════════════════════════════╗
║          FOXHUNT HFT SYSTEM - HEALTH STATUS SUMMARY (Wave 75 Agent 6)     ║
║                              2025-10-03 15:13                              ║
╚════════════════════════════════════════════════════════════════════════════╝

┌──────────────────────────────────────────────────────────────────────────┐
│ INFRASTRUCTURE SERVICES                                    STATUS: ✅ 100% │
├──────────────────────────────────────────────────────────────────────────┤
│  ✅ PostgreSQL (5433)                            [HEALTHY] 2 tables       │
│  ✅ Redis (6380)                                 [HEALTHY] 1.06M memory   │
│  ✅ Vault (8200)                                 [UNSEALED]               │
│  ✅ Prometheus (9099)                            [HEALTHY]                │
│  ✅ Grafana (3000)                               [HEALTHY] DB OK          │
│  ⚠️  InfluxDB (8086)                             [OPTIONAL] Not running   │
└──────────────────────────────────────────────────────────────────────────┘

┌──────────────────────────────────────────────────────────────────────────┐
│ GRPC APPLICATION SERVICES                               STATUS: ❌ 0%     │
├──────────────────────────────────────────────────────────────────────────┤
│  ❌ API Gateway (50050)                          [NOT STARTED]            │
│  ❌ Trading Service (50051)                      [FAILED] TLS cert missing│
│  ❌ Backtesting Service (50052)                  [FAILED] TLS cert missing│
│  ❌ ML Training Service (50053)                  [FAILED] TLS cert missing│
└──────────────────────────────────────────────────────────────────────────┘

┌──────────────────────────────────────────────────────────────────────────┐
│ DOCKER CONTAINERS                                       STATUS: ✅ 100%   │
├──────────────────────────────────────────────────────────────────────────┤
│  ✅ foxhunt-vault                                [Up 2h]                  │
│  ✅ foxhunt-grafana                              [Up 2h]                  │
│  ✅ foxhunt-prometheus                           [Up 2h]                  │
│  ✅ foxhunt-postgres-exporter                    [Up 2h]                  │
│  ✅ foxhunt-redis-exporter                       [Up 2h]                  │
│  ✅ foxhunt-alertmanager                         [Up 2h]                  │
│  ✅ foxhunt-node-exporter-gateway                [Up 2h]                  │
│  ✅ api_gateway_test_postgres                    [Up 4h] (healthy)        │
│  ✅ api_gateway_test_redis                       [Up 4h] (healthy)        │
└──────────────────────────────────────────────────────────────────────────┘

┌──────────────────────────────────────────────────────────────────────────┐
│ SYSTEM RESOURCES                                        STATUS: ✅ HEALTHY│
├──────────────────────────────────────────────────────────────────────────┤
│  CPU Usage:                                      <10% (Minimal activity) │
│  Memory Usage:                                   ~4GB/32GB (12.5%)       │
│  Disk Usage:                                     ~60% (Acceptable)       │
└──────────────────────────────────────────────────────────────────────────┘

┌──────────────────────────────────────────────────────────────────────────┐
│ ROOT CAUSE ANALYSIS                                                       │
├──────────────────────────────────────────────────────────────────────────┤
│  🔴 CRITICAL: Missing TLS certificates                                    │
│                                                                           │
│  All gRPC services require TLS certificates at:                          │
│    - /etc/foxhunt/certs/server.crt                                       │
│    - /etc/foxhunt/certs/server.key                                       │
│                                                                           │
│  Error: "Failed to read certificate file: No such file or directory"     │
│                                                                           │
│  Services affected:                                                       │
│    - trading_service (startup failed)                                    │
│    - backtesting_service (startup failed)                                │
│    - ml_training_service (startup failed)                                │
└──────────────────────────────────────────────────────────────────────────┘

┌──────────────────────────────────────────────────────────────────────────┐
│ IMMEDIATE REMEDIATION                                                     │
├──────────────────────────────────────────────────────────────────────────┤
│  1. Generate TLS certificates:                                           │
│     ./generate_dev_certs.sh                                              │
│                                                                           │
│  2. Restart services:                                                    │
│     ./target/release/trading_service &                                   │
│     ./target/release/backtesting_service &                               │
│     ./target/release/ml_training_service &                               │
│     ./target/release/api_gateway &                                       │
│                                                                           │
│  3. Verify health:                                                       │
│     ./quick_health_check.sh                                              │
└──────────────────────────────────────────────────────────────────────────┘

┌──────────────────────────────────────────────────────────────────────────┐
│ OVERALL SYSTEM STATUS                                                     │
├──────────────────────────────────────────────────────────────────────────┤
│  Infrastructure Layer:           ✅ PRODUCTION READY                      │
│  Application Layer:              ❌ BLOCKED (TLS certificates required)   │
│  Monitoring Stack:               ✅ OPERATIONAL                           │
│                                                                           │
│  Overall Assessment:             🔴 DEGRADED                              │
│                                                                           │
│  Path to GREEN:                  Generate certs → Restart → Validate     │
│  Estimated Time to Fix:          <5 minutes                              │
└──────────────────────────────────────────────────────────────────────────┘

╔════════════════════════════════════════════════════════════════════════════╗
║                             HEALTH CHECK TOOLS                             ║
╠════════════════════════════════════════════════════════════════════════════╣
║  Comprehensive Check:  ./health_check.sh       (35+ checks, detailed log) ║
║  Quick Check:          ./quick_health_check.sh (13 checks, <10 seconds)   ║
║  TLS Cert Generator:   ./generate_dev_certs.sh (development certificates) ║
║                                                                            ║
║  Documentation:        docs/WAVE75_AGENT6_HEALTH_VALIDATION.md            ║
╚════════════════════════════════════════════════════════════════════════════╝
