Random Project

Does almost what is should

Change the last rows to this to get queue statistics:

queue=`getQueue`

LABEL=”| mail_queue=$queue;$warning;$critical;0;”

if [ “$queue” -ge “$critical” ]; then
echo “CRITICAL – $queue $LABEL”
exit 2
elif [ “$queue” -ge “$warning” ]; then
echo “WARNING – $queue $LABEL”
exit 1
else
echo “OK – $queue $LABEL”
exit 0
fi