Ajout de fichiers Tech.domo91.fr
This commit is contained in:
12
scripts/stats_supervisor.sh
Normal file
12
scripts/stats_supervisor.sh
Normal file
@@ -0,0 +1,12 @@
|
||||
#!/bin/bash
|
||||
|
||||
echo "===== STATUS DES APPS SUPERVISÉES ====="
|
||||
supervisorctl status
|
||||
|
||||
echo ""
|
||||
echo "===== UTILISATION MÉMOIRE DES PROCESS STREAMLIT ====="
|
||||
ps aux | grep streamlit | grep -v grep | awk '{printf "%-8s %-6s %-6s %-6s %s\n", $1, $2, $4, $3, $11" "$12" "$13" "$14" "$15" "$16" "$17" "$18}' | awk 'BEGIN { print "USER PID %MEM %CPU CMD" } { print }'
|
||||
|
||||
echo ""
|
||||
echo "===== PORTS UTILISÉS PAR STREAMLIT ====="
|
||||
ss -tlnp | grep streamlit | awk '{print $4 " <- " $7}' | sed 's/.*://;s/,.*//'
|
||||
Reference in New Issue
Block a user