export interface AgentDiagnoseRemote {
  ssh_ok: boolean
  exit_code?: number
  stderr?: string
  error?: string
  systemctl_active?: string | null
  systemctl_detail?: string
  config?: Record<string, unknown> | null
  log_errors?: string
  central_health_http_code?: number | null
}

export interface AgentDiagnoseResult {
  server_id: number
  server_name: string
  server_domain?: string
  central_status: 'online' | 'offline' | 'unknown'
  has_agent: boolean
  agent_version_db: string
  last_heartbeat_db: string
  last_heartbeat_redis: string
  redis_online?: boolean
  remote?: AgentDiagnoseRemote
  errors: string[]
}
