dirty script to expose postfix queue stats in snmp

git-svn-id: http://www.observium.org/svn/observer/trunk@1219 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
Adam Amstrong
2010-06-20 14:58:33 +00:00
parent 356be19bc9
commit f602875c8f

13
scripts/posfix-queues Executable file
View File

@@ -0,0 +1,13 @@
#!/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