first commit
This commit is contained in:
9
dockers/sympa/alerting/mailq.sh
Executable file
9
dockers/sympa/alerting/mailq.sh
Executable file
@ -0,0 +1,9 @@
|
||||
#!/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
|
Reference in New Issue
Block a user