Files
weval-l99/deep_audit.sh
2026-04-20 13:36:02 +02:00

40 lines
1.1 KiB
Bash
Executable File

#!/bin/bash
echo "=== PostgreSQL health ==="
pg_isready -q 2>&1 && echo "PG: OK" || echo "PG: FAIL"
echo ""
echo "=== PHP-FPM workers ==="
ps aux | grep "php-fpm" | wc -l
echo ""
echo "=== Docker health ==="
docker ps --format "{{.Names}}: {{.Status}}" 2>/dev/null | head -20
echo ""
echo "=== Recent errors (Apache/nginx) ==="
sudo -n tail -5 /var/log/nginx/error.log 2>/dev/null | head -5
echo ""
echo "=== Ollama ==="
curl -s --noproxy '*' http://127.0.0.1:11434/api/tags -o /dev/null -w "Ollama: %{http_code}\n" --max-time 3
echo ""
echo "=== Sovereign cascade (port 4000) ==="
curl -s http://127.0.0.1:4000/health -o /dev/null -w "Sovereign: %{http_code}\n" --max-time 3
echo ""
echo "=== Qdrant ==="
curl -s http://127.0.0.1:6333/health -o /dev/null -w "Qdrant: %{http_code}\n" --max-time 3
echo ""
echo "=== N8N ==="
curl -s http://127.0.0.1:5678 -o /dev/null -w "N8N: %{http_code}\n" --max-time 3
echo ""
echo "=== Blade heartbeat ==="
curl -s https://weval-consulting.com/api/blade-heartbeat.json --max-time 5 | head -c 200
echo ""
echo "=== CRM Twenty ==="
curl -s http://127.0.0.1:3001 -o /dev/null -w "Twenty: %{http_code}\n" --max-time 3