Creating my own transfere stats

nbhosting

Verified User
Joined
Aug 6, 2004
Messages
25
Hi all,

Directadmin uses a difrend way to collect transfere data from

httpd and ftp

Can someone tell me how i can add my own logs to httpd.conf and some ftp log file?

so i want a httpd_myown_log (with all access data)
same for ftp


Greetz
Gerd
 
You would have to make the modifications to apache and proftpd yourself, then write your own script which would tally the usage and add to each corresponding usage files in DirectAdmin's data directory.
 
if a phew of you want to help me i'm willing to make a good script that logs each directory usage to sql.

I need some more info on wich files i have to edit to get my own secondary log system.

then i can readout my own logs and save it to sql for statistics based on hour,day, week ,month, year

if i make it a bit bigger you could even get stats on directory, domain or user usage


i'm prety good with php and sql, also got medium linux exp..

the info i need in the log files:

Date, Bytes, Location of the called file, referrer
 
Since DirectAdmin only stores totals, you'll have to scan and read all directories in your files for the level of information that your proposing on retrieving
 
Back
Top