Re: Patch for "doveadm -f table" nit (was Re: Dovecot current number of connections being used.)

2015-03-19 Thread Willem Jan Withagen
On 19-3-2015 9:30, Gedalya wrote: > On 03/18/2015 08:49 PM, Timo Sirainen wrote: >> There's no reason why flow and pager should write headers to stderr >> because it would always result only in a mess. But instead of changing >> table headers to write to stdout, I think a better fix would be to >>

Re: Patch for "doveadm -f table" nit (was Re: Dovecot current number of connections being used.)

2015-03-19 Thread Gedalya
On 03/18/2015 08:49 PM, Timo Sirainen wrote: There's no reason why flow and pager should write headers to stderr because it would always result only in a mess. But instead of changing table headers to write to stdout, I think a better fix would be to make tab formatter write headers to stderr.

Re: Patch for "doveadm -f table" nit (was Re: Dovecot current number of connections being used.)

2015-03-18 Thread Joseph Tam
On Thu, 19 Mar 2015, Timo Sirainen wrote: You have to redirect stderr to /dev/null because that's where the first header line is written to. The default format style (table) is inconsistent with the other formats (flow,pager,tab) that write headers and data to stdout. There's no reason why fl

Re: Patch for "doveadm -f table" nit (was Re: Dovecot current number of connections being used.)

2015-03-18 Thread Timo Sirainen
On 19 Mar 2015, at 02:37, Joseph Tam wrote: > > >> doveadm who -1 2>/dev/null | wc -l > > You have to redirect stderr to /dev/null because that's where the > first header line is written to. The default format style (table) > is inconsistent with the other formats (flow,pager,tab) that write >

Patch for "doveadm -f table" nit (was Re: Dovecot current number of connections being used.)

2015-03-18 Thread Joseph Tam
doveadm who -1 2>/dev/null | wc -l You have to redirect stderr to /dev/null because that's where the first header line is written to. The default format style (table) is inconsistent with the other formats (flow,pager,tab) that write headers and data to stdout. The following patch will pick

Re: Dovecot current number of connections being used.

2015-03-18 Thread Jaime Ventura
great! Thank you all for the replies. On Tue, Mar 17, 2015 at 7:39 PM, Joseph Tam wrote: > Jaime Ventura writes: > > Is there an easy way to get how many connections are being handled at a >> moment? >> > > This works: > > doveadm who -1 2>/dev/null | wc -l > > If yopu only want to cou

Re: Dovecot current number of connections being used.

2015-03-17 Thread Joseph Tam
Jaime Ventura writes: Is there an easy way to get how many connections are being handled at a moment? This works: doveadm who -1 2>/dev/null | wc -l If yopu only want to coutn IMAP connections (not POP3), doveadm who -1 2>/dev/null | grep -Fc imap Joseph Tam

Re: Dovecot current number of connections being used.

2015-03-17 Thread Andre Helwig
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 doveadm who should help On 03/17/2015 05:13 PM, Jaime Ventura wrote: > Hey, Is there an easy way to get how many connections are being > handled at a moment? > > I wanted to have that number over the time and see: - Trends on > usage during the day -

Dovecot current number of connections being used.

2015-03-17 Thread Jaime Ventura
Hey, Is there an easy way to get how many connections are being handled at a moment? I wanted to have that number over the time and see: - Trends on usage during the day - how close is it from reaching the maximum number of connections. - ... I'm searching for a solution without re