5 # how frequently to collect queue size
11 if [ -z "$exim_command" -o ! -x "$exim_command" ]
14 for d in /sbin /usr/sbin /usr/local/sbin
18 exim_command="$d/exim"
24 if [ -z "$exim_command" -o ! -x "$exim_command" ]
26 echo >&2 "$PROGRAM_NAME: exim: cannot find exim executable. Please set 'exim_command=/path/to/exim' in $confd/exim.conf"
30 if [ `$exim_command -bpc 2>&1 | grep -c denied` -ne 0 ]
32 echo >&2 "$PROGRAM_NAME: exim: permission denied. Please set 'queue_list_requires_admin = false' in your exim options file"
41 CHART exim.qemails '' "Exim Queue Emails" "emails" queue exim.queued.emails line $((exim_priority + 1)) $exim_update_every
42 DIMENSION emails '' absolute 1 1
48 echo "BEGIN exim.qemails $1"
49 echo "SET emails = " `$exim_command -bpc`