.TH postfix-mailqsize 1 "December 2007" "ngtx" .SH NAME postfix-mailqsize \- fast count emails in postfix queue .SH SYNOPSIS .B postfix-mailqsize [...] .SH DESCRIPTION This is a simple and very fast postfix mailqueue size display tool. It counts emails in queue dir /var/spool/postfix/. .br Its primary purpose is the usage as nagios remote plugin with net-snmp. Just add to snmpd.conf a single line like this: .IP extend .1.3.6.1.4.1.2021.61 mailqs /usr/sbin/postfix-mailqsize .PP Any additional arguments are silently ignored and can be used as a mark for i.e. searching a snmpwalk output with less. .SH "RETURN VALUE" The return value is 1 on permission denied. On success 0 is the result. .SH AUTHOR Frank Bergmann, http://www.tuxad.com