From 9fe21566cf63c5ba628193d3766159e4656cc966 Mon Sep 17 00:00:00 2001 From: Christian Nicolai Date: Fri, 18 Feb 2022 17:30:50 +0100 Subject: [PATCH] Dovecot 2.3 deprecated the old stats plugin as `oldstats` - https://doc.dovecot.org/installation_guide/upgrading/from-2.2-to-2.3/ --- dovecot_ | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dovecot_ b/dovecot_ index 9b1c017..1246eba 100755 --- a/dovecot_ +++ b/dovecot_ @@ -32,7 +32,7 @@ def echo_connections() puts "nimap.info Number of imap connections currently open." puts "nimap.type GAUGE" else - output = `doveadm stats dump session connected` + output = `doveadm oldstats dump session connected` csv_data = CSV.parse(output, {:col_sep => "\t"}) exit 1 if csv_data.empty? puts "nimap.value #{csv_data.select { |x| x[3] == 'imap'}.size}"