#!/bin/bash # # install qshape package # # b.toonk@capitar.com 8/2/2013 # monitor postfix queus with mk_agent, used for observium if [ -x /usr/sbin/qshape ] then echo "<<>>" QUEUES="incoming active deferred hold" for i in $QUEUES; do COUNT=`qshape $i | grep TOTAL | awk '{print $2}'` printf "$i:$COUNT\n" done fi