13.07.2015 Views

H-Sphere Sysadmin Guide © Copyright 1998-2007 ... - SiteStudio

H-Sphere Sysadmin Guide © Copyright 1998-2007 ... - SiteStudio

H-Sphere Sysadmin Guide © Copyright 1998-2007 ... - SiteStudio

SHOW MORE
SHOW LESS
  • No tags were found...

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Mail Traffic Calculation(updated for H−<strong>Sphere</strong> 2.4.3 Patch 1 and up)This document explains how H−<strong>Sphere</strong> collects and rotates mail traffic.H−<strong>Sphere</strong> cron script responsible for analyzing mail traffic is /hsphere/shared/scripts/cron/mail_anlz.sh (mail_anlz.pl in HS 2.4.3 and lower).The script runs daily, processes the qmail traffic log file and collects mail statistics into the specially formatted dd.mm.YYYY.qml.txt log files in the H−<strong>Sphere</strong>statistics directory /hsphere/local/var/statistic. Here, dd.mm.YYYY is current date timestamp.dd.mm.YYYY.qml.txt log files contain lines of the following format:|name|xFer(kB)|Hits_All|Hits_HTML|where name is the domain name, xFer is the total traffic in kilobytes.Then, H−<strong>Sphere</strong> TrafficLoader utility is launched by cron to collect mail traffic from the statistics directory and to store it into the system database. TrafficLoader alsocalls the /hsphere/shared/scripts/xfer_cat.pl script to move the already loaded mail statistics files to the/hsphere/local/var/statistic/loaded directory as dd.mm.YYYY.qml.txt.gz archives.Mail Traffic LogBefore H−<strong>Sphere</strong> 2.4.3 Patch 1, H−<strong>Sphere</strong> collected mail statistics from the /var/log/maillog qmail log file.In H−<strong>Sphere</strong> 2.4.3 Patch 1 and up, qmail writes a more detailed mail traffic log to the /var/hsphere/mail/logs/stats file. To view detailed descriptive mailstatistics from this file, run:/var/qmail/bin/mailstatistics −v −f /var/hsphere/mail/logs/statsThe −v option provides a verbose mode.Log records in the file have the following format:H−<strong>Sphere</strong> <strong>Sysadmin</strong> <strong>Guide</strong> © <strong>Copyright</strong> <strong>1998</strong>−<strong>2007</strong>. Positive Software Corporation. All rights reserved. 327

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!