summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--files/munin/dovecot9
1 files changed, 2 insertions, 7 deletions
diff --git a/files/munin/dovecot b/files/munin/dovecot
index 64ac93f..86feb4b 100644
--- a/files/munin/dovecot
+++ b/files/munin/dovecot
@@ -80,14 +80,9 @@ echo -n
######################
# Connected Users
######################
-DISCONNECTS=$(egrep 'dovecot.*Disconnected' $LOGFILE | sort | wc -l)
-CONNECTS=$(egrep 'dovecot.*Login' $LOGFILE | sort | wc -l)
-DISCON=$($EXPR_BIN $CONNECTS - $DISCONNECTS)
-if [ $DISCON -lt 0 ]; then
- DISCON=0
-fi
+CONNECTS=$(doveadm -f flow who -1 |wc -l)
/bin/echo -en "connected.value "
-echo $DISCON
+echo $CONNECTS
echo -n
######################
# TLS Logins