# no need for shebang - this file is loaded from charts.d.plugin # the postqueue command # if empty, it will use the one found in the system path postfix_postqueue= # how frequently to collect queue size postfix_update_every=15 postfix_priority=60000 postfix_check() { # this should return: # - 0 to enable the chart # - 1 to disable the chart # try to find the postqueue executable if [ -z "$postfix_postqueue" -o ! -x "$postfix_postqueue" ] then postfix_postqueue="`which postqueue 2>/dev/null`" if [ -z "$postfix_postqueue" -o ! -x "$postfix_postqueue" ] then local d= for d in /sbin /usr/sbin /usr/local/sbin do if [ -x "$d/postqueue" ] then postfix_postqueue="$d/postqueue" break fi done fi fi if [ -z "$postfix_postqueue" -o ! -x "$postfix_postqueue" ] then echo >&2 "$PROGRAM_NAME: postfix: cannot find postqueue. Please set 'postfix_postqueue=/path/to/postqueue' in $confd/postfix.conf" return 1 fi return 0 } postfix_create() { cat <