Zimbra offers Open Source email server software and shared calendar for Linux and the Mac
Go Back   Zimbra :: Forums > Zimbra Collaboration Suite > Administrators

Welcome to the Zimbra :: Forums!
Welcome, if you would like to post a comment please register. We also encourage you to explore all things Zimbra with our team and members of the community.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 01-17-2009, 09:52 AM
Loyal Member
 
Posts: 93
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 12:04 PM..
Reply With Quote
  #2 (permalink)  
Old 01-17-2009, 10:02 AM
Active Member
 
Posts: 30
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.
Reply With Quote
  #3 (permalink)  
Old 01-17-2009, 11:37 AM
Active Member
 
Posts: 30
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.
Reply With Quote
  #4 (permalink)  
Old 01-17-2009, 12:04 PM
Loyal Member
 
Posts: 93
Default

hi,

thank you for the help, it works :-)

gregor
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads

Why Join?

Registering let's you ask questions, makes it easier to search, displays any files attached to posts, and notifies you about replies.

blog.zimbra.com




 

SEO by vBSEO ©2011, Crawlability, Inc.