BPFT v.4.0
|
Originally BPFT v4 page located at |
|
Работы над скриптами trafd закрыты. На больших объемах trafd начинает
терять данные, поэтому, с увеличением ширины канала мы были вынуждены перейти на другую программу: ng_ipacct (ставится из портов net-mgmt/ng_ipacct). |
|
Скрипт для ввода данных из файлов trafd в базу MySQL
03.07.2002 Script traffic_to_mysql_6Вывод данных из базы
Данные планируется выводить по запросу пользователя на экран браузера
select_in="select from_unixtime((btime - btime%86400)) as mintime, \
from_unixtime(max(btime)) as maxtime, \
sum(bytes) from "${TA}" \
where ip_from not between '3232235520' and '3232301055' \
group by mintime";
# sport not between '137' and '139'
select_25="select from_unixtime((btime - btime%86400)) as mintime, \
from_unixtime(max(btime)) as maxtime, \
sum(bytes) from "${TA}" \
where ip_from not between '3232235520' and '3232301055' \
and dport='25' \
group by mintime";
select_80="select from_unixtime((btime - btime%86400)) as mintime, \
from_unixtime(max(btime)) as maxtime, \
sum(bytes) from "${TA}" \
where ip_from not between '3232235520' and '3232301055' \
and sport='80' \
group by mintime";
| mailto:aost@... | Copyright © 1999 - 2002 aost. |
Last update:
|