1
0
mirror of https://github.com/cmur2/munin-dovecot.git synced 2024-12-22 12:54:28 +01:00

Dovecot 2.3 deprecated the old stats plugin as oldstats

- https://doc.dovecot.org/installation_guide/upgrading/from-2.2-to-2.3/
This commit is contained in:
Christian Nicolai 2022-02-18 17:30:50 +01:00 committed by GitHub
parent b921dd0e93
commit 9fe21566cf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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}"