Home Directory

Search Exchange

Search All Sites

Nagios Live Webinars

Let our experts show you how Nagios can help your organization.

Contact Us

Phone: 1-888-NAGIOS-1
Email: sales@nagios.com

Login

Remember Me

Directory Tree

Directory

tom.molin

Reviews(1)
bytom.molin, July 26, 2012
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