This is an old revision of the document!


Postfix queue statistics for Cacti

/usr/local/bin/getmailq.sh

 #!/bin/bash
 QUEUES="incoming active deferred hold"
 for i in $QUEUES; do
    COUNT=`qshape $i | grep TOTAL | awk '{print $2}'`
       result="${result} $i:$COUNT "
 done
 echo $result

FIXME

cacti/postifxqueues.1243204502.txt.gz · Last modified: 2012/10/11 17:16 (external edit)
CC Attribution-Share Alike 4.0 International
Driven by DokuWiki Recent changes RSS feed Valid CSS Valid XHTML 1.0 ipv6 ready