diff options
author | Costa Tsaousis (ktsaou) <costa@tsaousis.gr> | 2014-05-30 21:21:39 +0300 |
---|---|---|
committer | Costa Tsaousis (ktsaou) <costa@tsaousis.gr> | 2014-05-30 21:21:39 +0300 |
commit | c666fc44f51dc7c488a74d90a8073de43ea93ac0 (patch) | |
tree | 211d0a1a4a7feb3b8540419a33d03a3f6b4baad1 /charts.d/postfix.chart.sh | |
parent | 4bb4aaaa10a9325373f4039419581f74fa31aa62 (diff) |
added support for different update frequency per chart in charts.d.plugin
Diffstat (limited to 'charts.d/postfix.chart.sh')
-rwxr-xr-x | charts.d/postfix.chart.sh | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/charts.d/postfix.chart.sh b/charts.d/postfix.chart.sh index 4132962224..e55ca15906 100755 --- a/charts.d/postfix.chart.sh +++ b/charts.d/postfix.chart.sh @@ -1,6 +1,7 @@ #!/bin/sh postfix_postqueue= +postfix_update_every=60 postfix_check() { # this should return: @@ -36,9 +37,9 @@ postfix_check() { postfix_create() { cat <<EOF -CHART postfix.qemails '' "Postfix Queue Emails" "emails" postfix postfix line 5000 $update_every -DIMENSION emails '' absolute-no-interpolation 1 1 -CHART postfix.qsize '' "Postfix Queue Emails Size" "emails size in KB" postfix postfix area 5001 $update_every +CHART postfix.qemails '' "Postfix Queue Emails" "emails" postfix postfix line 5000 $postfix_update_every +DIMENSION emails '' absolute 1 1 +CHART postfix.qsize '' "Postfix Queue Emails Size" "emails size in KB" postfix postfix area 5001 $postfix_update_every DIMENSION size '' absolute 1 1 EOF |