From a1c5af743226333d982794d225cd094a1ca6b0f0 Mon Sep 17 00:00:00 2001
From: Jan Philipp Timme <jan.philipp@timme.it>
Date: Thu, 8 Aug 2019 16:39:29 +0200
Subject: [PATCH] Fix label for connection metrics

---
 postfix-stats.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/postfix-stats.sh b/postfix-stats.sh
index 0ec3cd1..ca86c82 100755
--- a/postfix-stats.sh
+++ b/postfix-stats.sh
@@ -115,7 +115,7 @@ mo_dkim_signed=$(sed -n "$old_log_position","$new_log_position"p $LOGFILE | grep
 mo_dkim_unsigned=$(sed -n "$old_log_position","$new_log_position"p $LOGFILE | grep 'opendkim\['| grep 'no signing table match for' | wc -l)
 
 # Report counter results
-echo "P postfixdetails sent=$mo_sent|deferred=$mo_deferred|deliverable=$mo_deliverable|undeliverable=$mo_undeliverable|bounced=$mo_bncd_total|bounced-spam=$mo_bncd_spam|bounced-reputation=$mo_bncd_reputation|accepted=$mi_accept|proxy-accepted=$mi_proxy_accept|rejected=$mi_reject|proxy-rejected=$mi_proxy_reject|connections=$mi_connects|tls-connections=$mi_connects_tls|dmarc-pass=$mi_dmarc_pass|dmarc-fail=$mi_dmarc_fail|dmarc-none=$mi_dmarc_none|dkim-signed-in=$mi_dkim_signed|dkim-error-in=$mi_dkim_error|dkim-signed-out=$mo_dkim_signed|dkim-unsigned-out=$mo_dkim_unsigned Additional metrics related to postfix"
+echo "P postfixdetails sent=$mo_sent|deferred=$mo_deferred|deliverable=$mo_deliverable|undeliverable=$mo_undeliverable|bounced=$mo_bncd_total|bounced-spam=$mo_bncd_spam|bounced-reputation=$mo_bncd_reputation|accepted=$mi_accept|proxy-accepted=$mi_proxy_accept|rejected=$mi_reject|proxy-rejected=$mi_proxy_reject|connections-in=$mi_connects|tls-connections-in=$mi_connects_tls|dmarc-pass=$mi_dmarc_pass|dmarc-fail=$mi_dmarc_fail|dmarc-none=$mi_dmarc_none|dkim-signed-in=$mi_dkim_signed|dkim-error-in=$mi_dkim_error|dkim-signed-out=$mo_dkim_signed|dkim-unsigned-out=$mo_dkim_unsigned Additional metrics related to postfix"
 
 # That's it.
 exit 0
-- 
GitLab