Files
PFVCluster/archive/provisioning/Agents/librenms/postfix-queues
T
2026-08-01 15:45:23 -05:00

14 lines
284 B
Bash

#!/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