Table of Contents


postfix-mailqsize - fast count emails in postfix queue


postfix-mailqsize [...]


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 . 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.


Frank Bergmann,

Table of Contents