From 995024443bf3cefce51aeb23996a97e8809f8873 Mon Sep 17 00:00:00 2001 From: Micah Anderson Date: Wed, 12 Oct 2011 15:47:17 -0400 Subject: change munin graph to be reasonable for dovecot2 the previous way of doing graphs did some calculations that were way off when logrotation happened --- files/munin/dovecot | 9 ++------- 1 file 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 -- cgit v1.2.3