wiki:mf-monitor-mailq

Version 1 (modified by Ross, 6 years ago) (diff)

--

mf-monitor-mailq

Synopsis

Output the number of messages in the mailq

Description

Optionally, set environment variables MF_MAILQ_WARNING or MF_MAILQ_CRITICAL to indicate levels that should cause this script to output whether we are experiencing a nagios critical or warning level event (this is only necessary when outputing to /var/log/mfpl/monitor.

You may also set MF_MAILQ_DIR if the server is not running postfix or should otherwise check a different directory.

Examples

0 stone:~# mf-monitor-mailq
236
0 stone:~# 

See Also

mf-show-deferred-email-content

<< MayFirst Commands