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

check_mailqueue.pl

Current Version
1.0
Compatible With
  • Nagios 1.x
  • Nagios 2.x
  • Nagios 3.x
Owner
License
GPL
Hits
70483
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!
check_mailqueue.pl [-d] [-h] -w -c

-w, --warning warning threshold - mails in queue
number of mails in queue > time
ex: 30=3d,100=3h
-c, --critical critical threshold - mails in queue
number of mails in queue > time
ex: 30=3d,100=3h
-d, --debug enable debug mode
-h, --help show help message

warning and critical threshold:
specify something like 100=5h which means: more than 100 mails in queue for more than 5 hours. You can specify multiple declarations
for instance
-w 100=5h,30=3d,10=10d -c 150=5h,35=3d,15=10d
check_mailqueue.pl checks the mailqueue size. Thresholds can be given in a very detailed way. Let's say you wanna specify a threshold of 50 mails in queue longer than 4 days => 50=4d
You can specify multiple time frames for critical and warning threshold.
It uses mailq to get the mailq size.