KazV2/dockers/sympa/alerting/mailq.sh
2024-06-03 18:43:35 +02:00

10 lines
212 B
Bash
Executable File

#!/bin/bash
QUEUE=$(docker exec sympaServ mailq | grep "^[A-F0-9]")
COUNT=$(docker exec sympaServ mailq | grep -c "^[A-F0-9]")
if [ "$COUNT" -gt 4 ]; then
echo $QUEUE
echo "alerte mailq sympa : $COUNT"
fi