X-Git-Url: https://arthur.barton.de/gitweb/?a=blobdiff_plain;f=charts.d%2Fpostfix.chart.sh;h=d286f99f2064f37d8b0d366987e03c6c3e02a99c;hb=7c0ba6a675cbca3a6fa1a0b79a37259ad4b52aee;hp=e55ca15906d201f35008271e594566fbcc05e55f;hpb=c666fc44f51dc7c488a74d90a8073de43ea93ac0;p=netdata.git diff --git a/charts.d/postfix.chart.sh b/charts.d/postfix.chart.sh index e55ca159..d286f99f 100755 --- a/charts.d/postfix.chart.sh +++ b/charts.d/postfix.chart.sh @@ -1,7 +1,13 @@ #!/bin/sh +# the postqueue command +# if empty, it will use the one found in the system path postfix_postqueue= -postfix_update_every=60 + +# how frequently to collect queue size +postfix_update_every=15 + +postfix_priority=60000 postfix_check() { # this should return: @@ -28,7 +34,7 @@ postfix_check() { if [ -z "$postfix_postqueue" -o ! -x "$postfix_postqueue" ] then - echo >&2 "postfix: cannot find postqueue. Please set 'postfix_postqueue=/path/to/postqueue' in $confd/postfix.conf" + echo >&2 "$PROGRAM_NAME: postfix: cannot find postqueue. Please set 'postfix_postqueue=/path/to/postqueue' in $confd/postfix.conf" return 1 fi @@ -37,9 +43,9 @@ postfix_check() { postfix_create() { cat <