1 # no need for shebang - this file is loaded from charts.d.plugin
4 # real-time performance and health monitoring, done right!
5 # (C) 2016 Costa Tsaousis <costa@tsaousis.gr>
8 # Contributed by @jsveiga with PR #480
10 # the exim command to run
13 # how frequently to collect queue size
19 if [ -z "${exim_command}" ]
21 require_cmd exim || return 1
22 exim_command="${EXIM_CMD}"
25 if [ $(${exim_command} -bpc 2>&1 | grep -c denied) -ne 0 ]
27 error "permission denied - please set 'queue_list_requires_admin = false' in your exim options file"
36 CHART exim_local.qemails '' "Exim Queue Emails" "emails" queue exim.queued.emails line $((exim_priority + 1)) $exim_update_every
37 DIMENSION emails '' absolute 1 1
43 echo "BEGIN exim_local.qemails $1"
44 echo "SET emails = " $(run ${exim_command} -bpc)