Table of Contents

Name

postfix-mailqsize - fast count emails in postfix queue

Synopsis

postfix-mailqsize [...]

Description

This is a simple and very fast postfix mailqueue size display tool. It counts emails in queue dir /var/spool/postfix/.
Its primary purpose is the usage as nagios remote plugin with net-snmp. Just add to snmpd.conf a single line like this:
extend .1.3.6.1.4.1.2021.61 mailqs /usr/sbin/postfix-mailqsize

Any additional arguments are silently ignored and can be used as a mark for i.e. searching a snmpwalk output with less.

Return Value

The return value is 1 on permission denied. On success 0 is the result.

Author

Frank Bergmann, http://www.tuxad.com


Table of Contents