HI,
I’m currently testing the stats module of Dovecot (2.2.26.0 (23d1de6)) Looks like there no statistics under FreeBSD. Server isn’t busy yet but got at least a few connection open.
Added
mail_plugins = $mail_plugins stats
plugin { stats_refresh = 30 secs stats_track_cmds = yes }
doveadm stats dump global
reset_timestamp last_update num_logins num_cmds num_connected_sessions auth_successes auth_master_successes auth_failures auth_db_tempfails auth_cache_hits auth_cache_misses user_cpu sys_cpu clock_time min_faults maj_faults vol_cs invol_cs disk_input disk_output read_count read_bytes write_count write_bytes mail_lookup_path mail_lookup_attr mail_read_count mail_read_bytes mail_cache_hits 1478031539 0.000000 0 0 0 0 0 0 0 0 0 0.0 0.0 0.0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
Cheers, Ruud
On 01 Nov 2016, at 22:31, Ruud Boon ruud@t-boonproductions.nl wrote:
HI,
I’m currently testing the stats module of Dovecot (2.2.26.0 (23d1de6)) Looks like there no statistics under FreeBSD. Server isn’t busy yet but got at least a few connection open.
See if there are any errors in logs. I guess mail-stats fifo doesn't have enough permissions so that imap/pop3/lmtp can connect to it.
prw-rw-rw- 1 root wheel 0 Nov 1 13:09 stats-mail prw------- 1 root wheel 0 Nov 1 13:09 stats-user drwxr-x--- 2 root dovenull 4 Nov 1 13:09 token-login
If something other than root is trying to write to stats-user, we found the issue.
this is on 10.3-STABLE
On Wed, Nov 2, 2016 at 12:13 PM, Timo Sirainen tss@iki.fi wrote:
On 01 Nov 2016, at 22:31, Ruud Boon ruud@t-boonproductions.nl wrote:
HI,
I’m currently testing the stats module of Dovecot (2.2.26.0 (23d1de6)) Looks like there no statistics under FreeBSD. Server isn’t busy yet but got at least a few connection open.
See if there are any errors in logs. I guess mail-stats fifo doesn't have enough permissions so that imap/pop3/lmtp can connect to it.
-- Larry Rosenman http://www.lerctr.org/~ler Phone: +1 214-642-9640 (c) E-Mail: larryrtx@gmail.com US Mail: 17716 Limpia Crk, Round Rock, TX 78664-7281
I added the following to 90-plugin.conf: .... service stats { chroot = empty client_limit = 0 drop_priv_before_exec = no executable = stats extra_groups = fifo_listener stats-mail { group = mode = 0666 user = } fifo_listener stats-user { group = mode = 0666 user = } ....
and now: srw-rw-rw- 1 root wheel 0 Nov 2 12:47 stats prw-rw-rw- 1 root wheel 0 Nov 2 12:47 stats-mail prw-rw-rw- 1 root wheel 0 Nov 2 12:47 stats-user
and I get stats.
On Wed, Nov 2, 2016 at 12:18 PM, Larry Rosenman larryrtx@gmail.com wrote:
prw-rw-rw- 1 root wheel 0 Nov 1 13:09 stats-mail prw------- 1 root wheel 0 Nov 1 13:09 stats-user drwxr-x--- 2 root dovenull 4 Nov 1 13:09 token-login
If something other than root is trying to write to stats-user, we found the issue.
this is on 10.3-STABLE
On Wed, Nov 2, 2016 at 12:13 PM, Timo Sirainen tss@iki.fi wrote:
On 01 Nov 2016, at 22:31, Ruud Boon ruud@t-boonproductions.nl wrote:
HI,
I’m currently testing the stats module of Dovecot (2.2.26.0 (23d1de6)) Looks like there no statistics under FreeBSD. Server isn’t busy yet but got at least a few connection open.
See if there are any errors in logs. I guess mail-stats fifo doesn't have enough permissions so that imap/pop3/lmtp can connect to it.
-- Larry Rosenman http://www.lerctr.org/~ler Phone: +1 214-642-9640 (c) E-Mail: larryrtx@gmail.com US Mail: 17716 Limpia Crk, Round Rock, TX 78664-7281
-- Larry Rosenman http://www.lerctr.org/~ler Phone: +1 214-642-9640 (c) E-Mail: larryrtx@gmail.com US Mail: 17716 Limpia Crk, Round Rock, TX 78664-7281
Thnx Larry,
Thats was it!
Ruud
On 2 Nov 2016, at 18:52, Larry Rosenman larryrtx@gmail.com wrote:
I added the following to 90-plugin.conf: .... service stats { chroot = empty client_limit = 0 drop_priv_before_exec = no executable = stats extra_groups = fifo_listener stats-mail { group = mode = 0666 user = } fifo_listener stats-user { group = mode = 0666 user = } ....
and now: srw-rw-rw- 1 root wheel 0 Nov 2 12:47 stats prw-rw-rw- 1 root wheel 0 Nov 2 12:47 stats-mail prw-rw-rw- 1 root wheel 0 Nov 2 12:47 stats-user
and I get stats.
On Wed, Nov 2, 2016 at 12:18 PM, Larry Rosenman
mailto:larryrtx@gmail.com> wrote: prw-rw-rw- 1 root wheel 0 Nov 1 13:09 stats-mail prw------- 1 root wheel 0 Nov 1 13:09 stats-user drwxr-x--- 2 root dovenull 4 Nov 1 13:09 token-login If something other than root is trying to write to stats-user, we found the issue.
this is on 10.3-STABLE
On Wed, Nov 2, 2016 at 12:13 PM, Timo Sirainen
mailto:tss@iki.fi> wrote: On 01 Nov 2016, at 22:31, Ruud Boon mailto:ruud@t-boonproductions.nl> wrote: HI,
I’m currently testing the stats module of Dovecot (2.2.26.0 (23d1de6)) Looks like there no statistics under FreeBSD. Server isn’t busy yet but got at least a few connection open.
See if there are any errors in logs. I guess mail-stats fifo doesn't have enough permissions so that imap/pop3/lmtp can connect to it.
-- Larry Rosenman http://www.lerctr.org/~ler http://www.lerctr.org/~ler Phone: +1 214-642-9640 tel:%2B1%20214-642-9640 (c) E-Mail: larryrtx@gmail.com mailto:larryrtx@gmail.com US Mail: 17716 Limpia Crk, Round Rock, TX 78664-7281
-- Larry Rosenman http://www.lerctr.org/~ler http://www.lerctr.org/~ler Phone: +1 214-642-9640 (c) E-Mail: larryrtx@gmail.com mailto:larryrtx@gmail.com US Mail: 17716 Limpia Crk, Round Rock, TX 78664-7281
Larry Rosenman larryrtx@gmail.com wrote:
fifo_listener stats-mail { group = mode = 0666 user = } fifo_listener stats-user { group = mode = 0666 user = }
BTW: What is "stats-user" used for? I cannot find a reference in http://wiki2.dovecot.org/Statistics
Thanks and regards, Michael
participants (4)
-
Larry Rosenman
-
Michael Grimm
-
Ruud Boon
-
Timo Sirainen