| 1 | = mf-monitor-mailq = |
| 2 | == Synopsis == |
| 3 | Output the number of messages in the mailq |
| 4 | |
| 5 | == Description == |
| 6 | 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. |
| 7 | |
| 8 | You may also set MF_MAILQ_DIR if the server is not running postfix or should otherwise check a different directory. |
| 9 | |
| 10 | == Examples == |
| 11 | {{{ |
| 12 | 0 stone:~# mf-monitor-mailq |
| 13 | 236 |
| 14 | 0 stone:~# |
| 15 | }}} |
| 16 | |
| 17 | == See Also == |
| 18 | [[mf-show-deferred-email-content]] |
| 19 | |
| 20 | '''[wiki:how-to/servers/mf-commands << MayFirst Commands]''' |