#!/bin/bash

doveadm=`which doveadm`
if [ $? -eq 0 ]
then
  echo '<<<app-dovecot>>>'
  # FIXME This command works on dovecot 2.2, not 2.3 (same for the parser on the Observium side)
  doveadm stats dump global | tail -1 | tr '\t' '\n' | cut -d '.' -f 1
fi
