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:
parent
b921dd0e93
commit
9fe21566cf
2
dovecot_
2
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}"
|
||||
|
Loading…
Reference in New Issue
Block a user