Results 1 to 4 of 4

Thread: [SOLVED] daily zwc access report via mail

  1. #1
    Join Date
    Sep 2008
    Posts
    98
    Rep Power
    7

    Default [SOLVED] daily zwc access report via mail

    hi,

    how can i get zimbra to send a daily zimbra webclient access report via mail. i need informations about who access the zwc from which ip and when.
    how can i do this?

    is use the open source edition (Release 5.0.9_GA_2533.RHEL5_20080815132719 CentOS5 FOSS edition)

    greetings from austria
    gregor
    Last edited by gregor; 01-17-2009 at 01:04 PM.

  2. #2
    Join Date
    Dec 2007
    Location
    Missouri
    Posts
    30
    Rep Power
    8

    Default

    Access to the web client, IMAP, POP3, etc is logged in /opt/zimbra/log/mailbox.log. You could write a script to parse it every day to see who's active and from where.

  3. #3
    Join Date
    Dec 2007
    Location
    Missouri
    Posts
    30
    Rep Power
    8

    Default

    I wrote a simple script that parses yesterday's log file for ZWC access and prints a comma-separated list of users and IP addresses:

    Code:
    #!/bin/bash
    
    PATH="/usr/bin:/bin"
    
    # Find yesterday's log file
    logfile=`ls -1 /opt/zimbra/log/mailbox.log.*|sort | tail -n 1`
    
    # Find NoOpRequest entries in the log and output as comma-separated list
    cat $logfile | grep "ZimbraWebClient" | grep "name=" | grep "NoOpRequest" | cut -d " " -f 6 | tr ";" " " |tr "=" " " | cut -d " " -f 2,6 | sort | uniq | tr " " ","
    There are probably more elegant ways to do it, but this seems to work. You could call this from your crontab any time after midnight when the log file is rotated.

  4. #4
    Join Date
    Sep 2008
    Posts
    98
    Rep Power
    7

    Default

    hi,

    thank you for the help, it works :-)

    gregor

Similar Threads

  1. Replies: 7
    Last Post: 02-03-2011, 07:01 AM
  2. Incoming connection problems
    By whiteoakprinting in forum Administrators
    Replies: 4
    Last Post: 11-14-2010, 08:46 PM
  3. server dropped connection
    By ferra in forum Installation
    Replies: 20
    Last Post: 10-06-2008, 05:32 PM
  4. Issues...
    By timothyalangorman in forum Administrators
    Replies: 3
    Last Post: 11-19-2007, 10:43 AM
  5. Mail not getting to mail boxes
    By ehults in forum Installation
    Replies: 5
    Last Post: 10-31-2005, 09:24 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •