Search Exchange
Search All Sites
Nagios Live Webinars
Let our experts show you how Nagios can help your organization.Login
Directory Tree
Directory
tom.molin
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
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