#!/usr/bin/env bash # Health of every real team: container count, receiver unit, disk. set -uo pipefail cd /opt/gemastik18-final for i in 1 2 3 4; do printf "team%s: %2s containers | receiver=%s | team dir=%s\n" "$i" \ "$(docker ps --format '{{.Names}}' | grep -c "_container_team${i}\$")" \ "$(systemctl is-active "gemastik-receiver-team${i}.service")" \ "$([ -d "teams/team${i}" ] && echo ok || echo MISSING)" done echo "panel: $(systemctl is-active gemastik-panel)" df -h / | tail -1