add `_local` to postfix and exim bash scripts
paulfantom committed
Jul 14, 2016 at 13:34 UTC
55bd20b395e405ff36d5f0b7e7242397c3cad6d8
2 files changed
+6
-6
charts.d/exim.chart.sh
+2
-2
@@ -38,14 +38,14 @@ exim_check() {
38
39
exim_create() {
40
cat <<EOF
41
-CHART exim.qemails '' "Exim Queue Emails" "emails" queue exim.queued.emails line $((exim_priority + 1)) $exim_update_every
41
+CHART exim_local.qemails '' "Exim Queue Emails" "emails" queue exim.queued.emails line $((exim_priority + 1)) $exim_update_every
42
DIMENSION emails '' absolute 1 1
43
EOF
44
return 0
45
}
46
47
exim_update() {
48
-echo "BEGIN exim.qemails $1"
48
+echo "BEGIN exim_local.qemails $1"
49
echo "SET emails = " `$exim_command -bpc`
50
echo "END"
51
return 0
charts.d/postfix.chart.sh
+4
-4
@@ -43,9 +43,9 @@ postfix_check() {
43
44
postfix_create() {
45
cat <<EOF
46
-CHART postfix.qemails '' "Postfix Queue Emails" "emails" queue postfix.queued.emails line $((postfix_priority + 1)) $postfix_update_every
46
+CHART postfix_local.qemails '' "Postfix Queue Emails" "emails" queue postfix.queued.emails line $((postfix_priority + 1)) $postfix_update_every
47
DIMENSION emails '' absolute 1 1
48
-CHART postfix.qsize '' "Postfix Queue Emails Size" "emails size in KB" queue postfix.queued.size area $((postfix_priority + 2)) $postfix_update_every
48
+CHART postfix_local.qsize '' "Postfix Queue Emails Size" "emails size in KB" queue postfix.queued.size area $((postfix_priority + 2)) $postfix_update_every
49
DIMENSION size '' absolute 1 1
50
EOF
51
@@ -80,10 +80,10 @@ postfix_update() {
80
81
# write the result of the work.
82
cat <<VALUESEOF
83
-BEGIN postfix.qemails $1
83
+BEGIN postfix_local.qemails $1
84
SET emails = $postfix_q_emails
85
END
86
-BEGIN postfix.qsize $1
86
+BEGIN postfix_local.qsize $1
87
SET size = $postfix_q_size
88
END
89
VALUESEOF