33800 Docs

← Retour

Proposition : Corrections Dashboard - Ollama & Documentation

Status : IMPLEMENTEE

Date : 18/12/2025

Problemes identifies

1. Service Ollama en erreur (faux negatif)

Cause : Le script collect.sh teste le ping AVANT l'API, mais Windows bloque les pings ICMP.

Resultat actuel :

"ollama": {
  "status": "error",    <- FAUX ! L'API fonctionne
  "ping": "error",      <- Windows bloque ICMP
  "models_count": 0
}

Realite :

Correction : Tester l'API directement, sans verifier le ping d'abord.

2. IP incoherente dans nginx

Probleme : La config nginx pointe vers 192.168.1.185 au lieu de 192.168.1.30

Fichier : /etc/nginx/sites-available/ollama.33800.nowhere84.com.conf

Correction : Mettre a jour vers 192.168.1.30 ou verifier quelle IP est la bonne.

3. Documentation incomplete

Attendu (selon proposition initiale) :


Actions proposees

Action 1 : Corriger collect.sh (Ollama)

Avant (lignes 474-493) :

OLLAMA_PING=$(ping -c 1 -W 2 192.168.1.30 >/dev/null 2>&1 && echo "ok" || echo "error")
if [ "$OLLAMA_PING" = "ok" ]; then
    # Test API...

Apres :

# Ollama (VM Windows 192.168.1.30:11434) - Test API direct car Windows bloque ping
OLLAMA_API=$(curl -s --connect-timeout 5 -m 10 http://192.168.1.30:11434/api/tags 2>/dev/null)
if [ -n "$OLLAMA_API" ] && echo "$OLLAMA_API" | grep -q '"models"'; then
    OLLAMA_STATUS="ok"
    OLLAMA_PING="ok"
    OLLAMA_MODELS=$(echo "$OLLAMA_API" | jq -r '.models | length' 2>/dev/null || echo "0")
    OLLAMA_MODELS_LIST=$(echo "$OLLAMA_API" | jq -r '[.models[].name] | join(",")' 2>/dev/null || echo "")
else
    OLLAMA_STATUS="error"
    OLLAMA_PING="error"
    OLLAMA_MODELS="0"
    OLLAMA_MODELS_LIST=""
fi

Action 2 : Corriger config nginx Ollama

Mettre a jour l'IP dans /etc/nginx/sites-available/ollama.33800.nowhere84.com.conf :

proxy_pass http://192.168.1.30:11434;

Action 3 : Creer documentation manquante

servers.md - Liste detaillee de tous les serveurs avec :

services.md - Liste de tous les services avec :


Validation requise