]> arthur.barton.de Git - netdata.git/commitdiff
add `_local` to postfix and exim bash scripts
authorpaulfantom <paulfantom@gmail.com>
Thu, 14 Jul 2016 11:34:01 +0000 (13:34 +0200)
committerpaulfantom <paulfantom@gmail.com>
Thu, 14 Jul 2016 11:34:01 +0000 (13:34 +0200)
charts.d/exim.chart.sh
charts.d/postfix.chart.sh

index c5ed747b89941bdcfb59f551d24b5767eae3b276..e436ce8f207d10fc3e3a09599c74e4023656b8a5 100644 (file)
@@ -38,14 +38,14 @@ exim_check() {
 
 exim_create() {
 cat <<EOF
-CHART exim.qemails '' "Exim Queue Emails" "emails" queue exim.queued.emails line $((exim_priority + 1)) $exim_update_every
+CHART exim_local.qemails '' "Exim Queue Emails" "emails" queue exim.queued.emails line $((exim_priority + 1)) $exim_update_every
 DIMENSION emails '' absolute 1 1
 EOF
 return 0
 }
 
 exim_update() {
-echo "BEGIN exim.qemails $1"
+echo "BEGIN exim_local.qemails $1"
 echo "SET emails = " `$exim_command -bpc`
 echo "END"
 return 0
index f4f710275432ec52c3eed037feec626c5401ea24..e705733cb7b909032956e922de262856f59d8856 100755 (executable)
@@ -43,9 +43,9 @@ postfix_check() {
 
 postfix_create() {
 cat <<EOF
-CHART postfix.qemails '' "Postfix Queue Emails" "emails" queue postfix.queued.emails line $((postfix_priority + 1)) $postfix_update_every
+CHART postfix_local.qemails '' "Postfix Queue Emails" "emails" queue postfix.queued.emails line $((postfix_priority + 1)) $postfix_update_every
 DIMENSION emails '' absolute 1 1
-CHART postfix.qsize '' "Postfix Queue Emails Size" "emails size in KB" queue postfix.queued.size area $((postfix_priority + 2)) $postfix_update_every
+CHART postfix_local.qsize '' "Postfix Queue Emails Size" "emails size in KB" queue postfix.queued.size area $((postfix_priority + 2)) $postfix_update_every
 DIMENSION size '' absolute 1 1
 EOF
 
@@ -80,10 +80,10 @@ postfix_update() {
 
        # write the result of the work.
        cat <<VALUESEOF
-BEGIN postfix.qemails $1
+BEGIN postfix_local.qemails $1
 SET emails = $postfix_q_emails
 END
-BEGIN postfix.qsize $1
+BEGIN postfix_local.qsize $1
 SET size = $postfix_q_size
 END
 VALUESEOF