Check traffic on physical servers
Web, FTP and mail logs are located in the /hsphere/local/var/statistic directory of the corresponding physical server.
Log files have the following names:
- dd.mm.YYYY.txt - web logs,
- dd.mm.YYYY.gst.txt - ftp logs,
- dd.mm.YYYY.ftp.txt - virtual ftp logs.
- dd.mm.YYYY.qml - mail logs,
where dd.mm.YYYY is the timestamp of log file creation date.
Here, mail logs are generated by the qmail server, and ftp logs by proftpd
Log files contain specially-formatted information tabulated as follows:
Here, name is the domain name, xFer is total traffic in kilobytes.
Processed traffic files are moved to the /hsphere/local/var/statistic/loaded directory as .gz archives.
TrafficLoader H-Sphere Java class is in charge of parsing the server traffic.
That's how it is launched by cron:
30 5 * * * su -l cpanel -c 'java psoft.hsphere.TrafficLoader'
TrafficLoader processes Web, mail, FTP and virtual FTP traffic in the formatted
statistics files located in the /hsphere/local/var/statistic directory
and inserts these lines into the translog table of the H-Sphere system database.
TrafficLoader also calls the /hsphere/shared/scripts/xfer_cat.pl script to
move the already loaded statistics files to the /hsphere/local/var/statistic/loaded
directory as .txt.gz archives.