Postfix

check_postqueue.sh

Description:

The script returns the length of Postfix queue by parsing output of postqueue.

Current Version

1.0.2

Last Release Date

2010-04-16

Compatible With

  • Nagios 1.x
  • Nagios 2.x
  • Nagios 3.x

License

GPL


Nagios CSP

Meet The New Nagios Core Services Platform

Built on over 25 years of monitoring experience, the Nagios Core Services Platform provides insightful monitoring dashboards, time-saving monitoring wizards, and unmatched ease of use. Use it for free indefinitely.

Monitoring Made Magically Better

  • Nagios Core on Overdrive
  • Powerful Monitoring Dashboards
  • Time-Saving Configuration Wizards
  • Open Source Powered Monitoring On Steroids
  • And So Much More!
Project Files
Project Notes
Features: - check length of Postfix queue - specify limits for WARNING and CRITICAL - specify address to count - exclude something from taking it into account Example usage: ./check_postqueue.sh -w 50 -c 100 -f '!MAILER-DAEMON'
Reviews (4) Add a Review
Great plugin
by egalstad, February 28, 2013
Hi all,

This plugin works perfectly. Why not including the perf data posted in the previous reviews?

Regards,
Luismi
Helpful? Yes  No 
Does almost what is should
by tom.molin, July 31, 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
Helpful? Yes  No 
My Diff for graphing
by itp_leeuwg, July 31, 2012
Hi,

here is my diff for graphing... Maybe the package can be updated?

112,113d111
ret=1
119c119,120
stat="OK"
> ret=0
120a122,125
>
> echo "POSTQUEUE $stat - Number of queued messages: $queue |queue_size=$queue;$warning;$critical;0"
>
> exit $ret
1 of 1 found this review helpful.
Helpful? Yes 1 No 0
small modifications
by k2s, March 31, 2011
My modification of check_postqueue.sh adds:
* possible to pass config_dir to postqueue
* queue size output usable for graphs
Owner's Reply:

Can we see these modifications?


0 of 1 found this review helpful.
Helpful? Yes  No 1
Add a Review

You must be logged in to submit a review.

Thank you for your review!

Your review has been submitted and is pending approval.

Recommend

To:


From:


Thank you for your recommendation!

Your recommendation has been sent.

Project Stats
Rating
4 (6)
Favorites
2
Views
103,322