1 # no need for shebang - this file is loaded from charts.d.plugin
3 # the exim command to run
6 # how frequently to collect queue size
12 if [ -z "${exim_command}" ]
14 require_cmd exim || return 1
15 exim_command="${EXIM_CMD}"
18 if [ $(${exim_command} -bpc 2>&1 | grep -c denied) -ne 0 ]
20 error "permission denied - please set 'queue_list_requires_admin = false' in your exim options file"
29 CHART exim_local.qemails '' "Exim Queue Emails" "emails" queue exim.queued.emails line $((exim_priority + 1)) $exim_update_every
30 DIMENSION emails '' absolute 1 1
36 echo "BEGIN exim_local.qemails $1"
37 echo "SET emails = " $(run ${exim_command} -bpc)