LegacyTechops/libre-work/librenms/postfix-queues

14 lines
281 B
Plaintext
Raw Normal View History

2019-04-26 03:50:23 +00:00
#!/bin/bash
#Written by Valec 2006. Steal and share.
#Get postfix queue lengths
#extend mailq /opt/observer/scripts/getmailq.sh
QUEUES="incoming active deferred hold"
for i in $QUEUES; do
COUNT=`qshape $i | grep TOTAL | awk '{print $2}'`
printf "$COUNT\n"
done