Mail Queue Monitoring

Mail Queue Monitoring

Hi,

How can I setup mail queue monitoring using OpManager to monitor if the amount of mail in our queue (which is using postfix) is above 100?

I have this script, and I want to run it on the server and have OpManager run it and create a ticket/request if the queue is above 100


#!/bin/bash

queuelength=`/usr/sbin/postqueue -p | tail -n1 | awk '{print $5}'`
queuecount=`echo $queuelength | grep "[0-9]"`

if [ "$queuecount" == "" ]; then
        echo 0;
        exit 0;
else
        echo ${queuelength};
        exit 1;
fi
#exit 35

              New to ADManager Plus?

                New to ADSelfService Plus?