forum.bitel.ru
http://forum.bitel.ru/

netflow_ipn.propertes
http://forum.bitel.ru/viewtopic.php?f=7&t=2713
Страница 1 из 1

Автор:  eolegnn [ 09 авг 2009, 17:18 ]
Заголовок сообщения:  netflow_ipn.propertes

в версии 4.5 работает в такой конфигурации:
port.admin=2003
port.netflow=2004
collector.mid=5
db.driver=com.mysql.jdbc.Driver
db.url=jdbc:mysql://127.0.0.1/bgbilling?useUnicode=true&characterEncoding=Cp1251&zeroDateTimeBehavior=convertToNull&jdbcCompliantTruncation=false
db.user=bill
db.pswd=bgbilling
db.maxActive=300
db.maxIdle=100
generate.minutes=5
netflow.thread.count=10
log.dir=/usr/local/BGIPNNetflowCollector/log
load=1
process=1
sources=1,2,3

перешел на 4.6 и в договорах пропал трафик
port.admin=2003
collector.mid=5
db.driver=com.mysql.jdbc.Driver
db.url=jdbc:mysql://127.0.0.1/bgbilling?useUnicode=true&characterEncoding=Cp1251&zeroDateTimeBehavior=convertToNull&jdbcCompliantTruncation=false
db.user=bill
db.pswd=bgbilling
db.maxActive=300
db.maxIdle=100
log.dir=/usr/local/BGIPNNetflowCollector/log
load=1
process=1
process.sources=1,2,3
generate.minutes=5
collector.capture.flow.port.1=2004
collector.capture.flow.port.1.type=netflow
collector.capture.flow.port.1.thread.count=10
datalog.chunk.size=393216
может конфиг неправильный?

2Р3 1.4ГГ 1 Гб ОЗУ
datalog.chunk.size=393216 правильный?

в логах находится договор
08-09/15:06:02 DEBUG [Thread-12] dataloader - Process line Flow 2:Х.Х.Х.Х:1717 / 4:210.249.24.16:4899 144 ToS/DiffServ: 10 nextHop: Х.Х.Х.Х
08-09/15:06:02 DEBUG [Thread-12] dataloader - Find any iface list
08-09/15:06:02 DEBUG [Thread-12] dataloader - addr=1389385606; range.start=0; range.end=0
08-09/15:06:02 DEBUG [Thread-12] dataloader - Found send client
08-09/15:06:02 DEBUG [Thread-12] dataloader - LINE 6540;20;8;144
08-09/15:06:02 DEBUG [Thread-12] dataloader - addAmount 142_67_8 => 144
08-09/15:06:02 DEBUG [Thread-12] dataloader - Find any iface list
08-09/15:06:02 DEBUG [Thread-12] dataloader - addr=3539539984; range.start=0; range.end=0
08-09/15:06:02 DEBUG [Thread-12] dataloader - Process line Flow 2:Х.Х.Х.Х:0 / 4:210.249.227.4:0 122 ToS/DiffServ: 0 nextHop: Х.Х.Х.Y

в качестве шлюзов mikrotik

Автор:  eolegnn [ 10 авг 2009, 04:12 ]
Заголовок сообщения: 

как правильно:
так
port.admin=2003
port.netflow=2004
collector.mid=5
db.driver=com.mysql.jdbc.Driver
db.url=jdbc:mysql://127.0.0.1/bgbilling?useUnicode=true&characterEncoding=Cp1251&zeroDateTimeBehavior=convertToNull&jdbcCompliantTruncation=false
db.user=bill
db.pswd=bgbilling
db.maxActive=300
db.maxIdle=100
generate.minutes=5
netflow.thread.count=10
log.dir=/usr/local/BGIPNNetflowCollector/log
load=1
process=1
sources=1,2,3

или так:
port.admin=2003

#▒▒▒ ▒▒▒▒▒▒ IPN
collector.mid=5

#▒▒▒▒▒ ▒▒▒▒▒▒▒▒▒▒▒ ▒ ▒▒
db.driver=com.mysql.jdbc.Driver
db.url=jdbc:mysql://127.0.0.1/bgbilling?useUnicode=true&characterEncoding=Cp1251&zeroDateTimeBehavior=convertToNull&jdbcCompliantTruncation=false
db.user=bill
db.pswd=bgbilling
db.maxActive=300
db.maxIdle=100

#▒▒▒▒▒▒▒▒▒▒ ▒▒▒▒▒
log.dir=/usr/local/BGIPNNetflowCollector/log
load=1

#process=1
#sources=1,2,3

#▒▒▒▒
collector.capture.flow.port.1=2004
#▒▒▒ ▒▒▒▒▒▒▒▒▒
collector.capture.flow.port.1.type=netflow
#▒▒▒▒▒▒▒▒▒▒▒▒▒ ▒▒ ▒▒▒▒▒ ▒▒▒▒▒▒▒▒▒ (▒▒▒▒▒▒▒▒▒▒ ▒▒▒▒)
collector.capture.flow.port.1.sources=1,2,3
#▒▒▒▒▒▒▒▒▒▒ ▒▒▒▒▒▒▒
collector.capture.flow.port.1.thread.count=10
#
#collector.capture.flow.port.2=2005
#collector.capture.flow.port.2.type=sflow
#collector.capture.flow.port.2.sources=
#collector.capture.flow.port.2.thread.count=10

#▒▒▒▒▒▒▒▒▒▒▒▒ snmp
#collector.capture.snmp=1
#collector.capture.snmp.sources=1

#▒▒▒▒▒▒ ▒▒▒▒▒
datalog.chunk.size=393216

Автор:  Andrey [ 10 авг 2009, 06:41 ]
Заголовок сообщения: 

eolegnn писал(а):
port.admin=2003

#▒▒▒ ▒▒▒▒▒▒ IPN
collector.mid=5

#▒▒▒▒▒ ▒▒▒▒▒▒▒▒▒▒▒ ▒ ▒▒
db.driver=com.mysql.jdbc.Driver
db.url=jdbc:mysql://127.0.0.1/bgbilling?useUnicode=true&characterEncoding=Cp1251&zeroDateTimeBehavior=convertToNull&jdbcCompliantTruncation=false
db.user=bill
db.pswd=bgbilling
db.maxActive=300
db.maxIdle=100

#▒▒▒▒▒▒▒▒▒▒ ▒▒▒▒▒
log.dir=/usr/local/BGIPNNetflowCollector/log
load=1

#process=1
#sources=1,2,3


#▒▒▒▒
collector.capture.flow.port.1=2004
#▒▒▒ ▒▒▒▒▒▒▒▒▒
collector.capture.flow.port.1.type=netflow
#▒▒▒▒▒▒▒▒▒▒▒▒▒ ▒▒ ▒▒▒▒▒ ▒▒▒▒▒▒▒▒▒ (▒▒▒▒▒▒▒▒▒▒ ▒▒▒▒)
collector.capture.flow.port.1.sources=1,2,3
#▒▒▒▒▒▒▒▒▒▒ ▒▒▒▒▒▒▒
collector.capture.flow.port.1.thread.count=10
#
#collector.capture.flow.port.2=2005
#collector.capture.flow.port.2.type=sflow
#collector.capture.flow.port.2.sources=
#collector.capture.flow.port.2.thread.count=10

#▒▒▒▒▒▒▒▒▒▒▒▒ snmp
#collector.capture.snmp=1
#collector.capture.snmp.sources=1

#▒▒▒▒▒▒ ▒▒▒▒▒
datalog.chunk.size=393216


Выделеные строчки нужно раскомментить, потому что они как раз отвечают за обработку логов, и за список источников, с которых обрабатывать логи

Автор:  Amir [ 10 авг 2009, 13:08 ]
Заголовок сообщения: 

В первом варианте вроде все правильно, но забыли добавить
Цитата:
port.admin=2003
collector.mid=5
db.driver=com.mysql.jdbc.Driver
db.url=jdbc:mysql://127.0.0.1/bgbilling?useUnicode=true&characterEncoding=Cp1251&zeroDateTimeBehavior=convertToNull&jdbcCompliantTruncation=false
db.user=bill
db.pswd=bgbilling
db.maxActive=300
db.maxIdle=100
log.dir=/usr/local/BGIPNNetflowCollector/log
load=1
process=1
process.sources=1,2,3
generate.minutes=5
collector.capture.flow.port.1=2004
collector.capture.flow.port.1.type=netflow
collector.capture.flow.port.1.sources=1,2,3
collector.capture.flow.port.1.thread.count=10
datalog.chunk.size=393216

А вообще если бы и не меняли конфиг должно было работать, но лучше конечно поменять.

Автор:  eolegnn [ 18 авг 2009, 21:08 ]
Заголовок сообщения:  netflow_ipn.propertes

вот ведь как бывает
debian
iptables выключен
java от sun с вашего сайта
трафик не считает правильно, примерно в 10 раз меньше трафика насчитывает
затрахался искать причину

поставил centos
настройка такие же как у дебиана но все считает правильно

так что разработчикам нужно поковырятся поставив на дебиан биллинг

Страница 1 из 1 Часовой пояс: UTC + 5 часов [ Летнее время ]
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/