ОС: Ubuntu Server 10.04 x64
Версия UTM5: utm5-2.1.007
Легче всего заметить что что-то не так, если посмотреть отчет за апрель-июнь 2003 пользователя cli5
По идее, у него должно быть по 40 МБ в сутки и получится за три месяца 4550МБ. Итого сходится , а вот распределение по дням явно не в порядке:
Во-первых, в некоторые дни не 40,а 20 МБ или 80МБ. А Весь трафик за май-июнь вообще записан на 30 апреля!
У остальных пользователей cli1,cli2,cli3,cli4 такая же картина
ID аккаунта Логин Класс трафика Кол-во МБ Цена за МБ Сумма Дата
5 cli5 Incoming (10) 40.000 0.000 0.000 02.04.2003 0:00
5 cli5 Incoming (10) 40.000 0.000 0.000 03.04.2003 0:00
5 cli5 Incoming (10) 40.000 0.000 0.000 04.04.2003 0:00
5 cli5 Incoming (10) 40.000 0.000 0.000 05.04.2003 0:00
5 cli5 Incoming (10) 40.000 0.000 0.000 06.04.2003 0:00
5 cli5 Incoming (10) 40.000 0.000 0.000 07.04.2003 0:00
5 cli5 Incoming (10) 40.000 0.000 0.000 08.04.2003 0:00
5 cli5 Incoming (10) 40.000 0.000 0.000 09.04.2003 0:00
5 cli5 Incoming (10) 40.000 0.000 0.000 10.04.2003 0:00
5 cli5 Incoming (10) 40.000 0.000 0.000 11.04.2003 0:00
5 cli5 Incoming (10) 40.000 0.000 0.000 12.04.2003 0:00
5 cli5 Incoming (10) 40.000 0.000 0.000 13.04.2003 0:00
5 cli5 Incoming (10) 20.000 0.000 0.000 14.04.2003 0:00
5 cli5 Incoming (10) 20.000 0.150 3.000 14.04.2003 0:00
5 cli5 Incoming (10) 40.000 0.150 6.000 15.04.2003 0:00
5 cli5 Incoming (10) 40.000 0.150 6.000 16.04.2003 0:00
5 cli5 Incoming (10) 40.000 0.150 6.000 17.04.2003 0:00
5 cli5 Incoming (10) 40.000 0.150 6.000 18.04.2003 0:00
5 cli5 Incoming (10) 40.000 0.150 6.000 19.04.2003 0:00
5 cli5 Incoming (10) 40.000 0.150 6.000 20.04.2003 0:00
5 cli5 Incoming (10) 40.000 0.150 6.000 21.04.2003 0:00
5 cli5 Incoming (10) 40.000 0.150 6.000 22.04.2003 0:00
5 cli5 Incoming (10) 40.000 0.150 6.000 23.04.2003 0:00
5 cli5 Incoming (10) 40.000 0.150 6.000 24.04.2003 0:00
5 cli5 Incoming (10) 40.000 0.150 6.000 25.04.2003 0:00
5 cli5 Incoming (10) 40.000 0.150 6.000 26.04.2003 0:00
5 cli5 Incoming (10) 40.000 0.150 6.000 27.04.2003 0:00
5 cli5 Incoming (10) 80.000 0.150 12.000 28.04.2003 0:00
5 cli5 Incoming (10) 3430.000 0.150 514.500 30.04.2003 0:00
Итого 4550.000 607.500
Подскажите, в чем может быть причина?
Напишу некоторую дополнительную инфу:
- пытался менять время аггрегации traffic_agregation_interval с 900 на 30, но все равно картина такая же
- ОС пустая, специально ставилась для теста
Как запускал контрольный пример:
1. Стопил ядро и rfw, radius
Далее по манулу:
2. date 0401000003
3. mysqladmin -uroot -p drop UTM5
mysqladmin -uroot -p create UTM5
mysql -uroot -p UTM5 < UTM5_MYSQL_kp.sql
mysql -uroot -p -f UTM5 < UTM5_MYSQL_update.sql
4. Лицензионный ключик
mysql -uroot -p -f UTM5 < reg.sql
4. Стартовал ядро
5. Запускал контрольный пример:
perl kp.pl
Конфиг utm5.cfg
Код: Выделить всё
database_type=mysql
database=UTM5
#database_host=localhost
database_login=root
database_password=password
database_sock_path=/var/run/mysqld/mysqld.sock
database_port=3306
## dbcount
## Description: Number of database connections.
## Possible values: an integer from 2 to 64
## Default value: 6
#dbcount=6
## database_reconnect_count
## Description: Number of connection retries.
## Default value: 5
#database_reconnect_count=5
## database_reconnect_sleep
## Description: Reconnect timeout in seconds.
## Default value: 2
#database_reconnect_sleep=2
database_charset=utf8
## =============================================================================
## URFA SERVER
## =============================================================================
## urfa_bind_host
## Description: Listening IP address. Several values can be set.
## Possible values: interface IP address or 0.0.0.0.
## Default value: disabled
urfa_bind_host=0.0.0.0
## urfa_bind_port
## Description: Listening port.
## Possible values: an integer from 1 to 65534
## Default value: 11758
## urfa_lib_file
## Description: Dynamic modules that will be loaded at system start-up. Several
## values can be set.
## Possible values: both absolute and relative paths may be used
## Default value: <empty>
urfa_lib_file=/netup/utm5/lib/utm5_core/liburfa-utils.so
urfa_lib_file=/netup/utm5/lib/utm5_core/liburfa-std.so
urfa_lib_file=/netup/utm5/lib/utm5_core/liburfa-reports.so
urfa_lib_file=/netup/utm5/lib/utm5_core/liburfa-card.so
urfa_lib_file=/netup/utm5/lib/utm5_core/liburfa-graph.so
urfa_lib_file=/netup/utm5/lib/utm5_radius/liburfa-radius.so
urfa_lib_file=/netup/utm5/lib/utm5_hotspot/liburfa-hotspot.so
## =============================================================================
## STREAM TRANSPORT SERVER
## =============================================================================
## stream_bind_host
## Description: Listening IP address.
## Possible values: interface IP address or 0.0.0.0
## Default value: 0.0.0.0 (listen all interfaces)
## stream_bind_port
## Description: Listening port.
## Possible values: an integer from 1 to 65534
## Default value: 12758
## =============================================================================
## NETFLOW BUFFER
## =============================================================================
## nfbuffer_host
## Description: Listening IP address.
## Possible values: IP address
## Default value: 0.0.0.0
nfbuffer_host=127.0.0.1
nfbuffer_port=9996
## nbuffer_bufsize
## Description: UDP socket buffer size (set as SO_RCVBUF)
## in FreeBSD you can change maximum bufsize limit with command:
## sysctl -w kern.ipc.maxsockbuf=20485760
## in Linux you can change maximum bufsize limit with command:
## sysctl -w net.core.rmem_max=20485760
## Possible values: an integer
## Default value: set in OS
#nfbuffer_bufsize=10485760
## =============================================================================
## LOGGING
## =============================================================================
## log_level
## Description: Logging level.
## Possible values: 0, 1, 2, 3
## Default value: 1
log_level=3
## log_file_main
## Description: Main logfile path.
## Possible values: <filename>
## Default value: STDERR
log_file_main=/netup/utm5/log/main.log
## log_file_debug
## Description: Debug logfile path.
## Possible values: <filename>
## Default value: STDERR
log_file_debug=/netup/utm5/log/debug.log
## log_file_critical
## Description: Critical logfile path.
## Possible values: <filename>
## Default value: STDERR
## log_file_verificator
## Description: Database verifier logfile path.
## Possible values: <filename>
## Default value: /netup/utm5/log/verificator.sql
log_file_verificator=/netup/utm5/log/verificator.log
## rotate_logs
## Description: Enables logfile rotation
## Possible values: yes, on, enable
## Default value: disabled
## max_logfile_count
## Description: Maximum number of logfiles to retain. Valid if logfile rotation
## is on.
## Default value: not limited
## max_logfile_size
## Description: Maximum logfile size. When logfile size reaches this limit, a
## rotation is performed. Valid if logfile rotation is on.
## Default value: 10485760
## core_pid_file
## Description: Path to PID file
## Possible values: <filename>
## Default value: /var/run/utm5_core.pid
#core_pid_file=/var/run/utm5_core.pid
## =============================================================================
## CERTIFICATE SETTINGS
## =============================================================================
## ssl_cert_file
## Description: Path to SSL certificate file
## Default value: /netup/utm5/cert.crt
## ssl_privkey_file
## Description: Path to SSL private key file
## Default value: /netup/utm5/privkey.pem
## ssl_privkey_passphrase
## Description: SSL private key passphrase
## Default value: <empty>
## =============================================================================
## THREADS SETTINGS
## =============================================================================
## thread_stack_size
## Description: Thread stack size for business logic threads.
## Possible values: size in bytes, more than 65536
## Default value: 8388608
## rpc_stack_size
## Description: Thread stack size for threads of URFA server.
## Possible values: size in bytes, more than 65536
## Default value: <unset>
в /netup/utm5/log/main.log
присутствует вот такой кусок во время отработки скрипта:
Код: Выделить всё
Info : Apr 12 00:00:00 UTM5 Logger: New `?Debug : ' stream: /netup/utm5/log/debug.log
Notice: Apr 12 00:00:00 ModMap: Log file reopened
Info : Apr 12 00:00:06 UTM5 Logger: New ` Info : ' stream: /netup/utm5/log/main.log
Info : Apr 12 00:00:06 UTM5 Logger: New `?Debug : ' stream: /netup/utm5/log/debug.log
Notice: Apr 12 00:00:06 ModMap: Log file reopened
Info : Apr 13 00:00:00 UTM5 Logger: New ` Info : ' stream: /netup/utm5/log/main.log
Info : Apr 13 00:00:00 UTM5 Logger: New `?Debug : ' stream: /netup/utm5/log/debug.log
Notice: Apr 13 00:00:00 ModMap: Log file reopened
Info : Apr 13 00:00:06 UTM5 Logger: New ` Info : ' stream: /netup/utm5/log/main.log
Info : Apr 13 00:00:06 UTM5 Logger: New `?Debug : ' stream: /netup/utm5/log/debug.log
Notice: Apr 13 00:00:06 ModMap: Log file reopened
Info : Apr 13 10:00:00 UTM5 DBA: user 3 reached balance -0.400000
ERROR : Apr 13 10:00:00 RfwPlugin: rules list is empty, nothing to exec
Info : Apr 14 00:00:00 UTM5 DBA: user 1 reached balance -1.218750
Info : Apr 14 00:00:00 UTM5 DBA: user 2 reached balance -1.265625
ERROR : Apr 14 00:00:00 RfwPlugin: rules list is empty, nothing to exec
Info : Apr 14 00:00:00 UTM5 DBA: user 3 reached balance -1.665625
Info : Apr 14 00:00:00 UTM5 DBA: user 4 reached balance -42.187500
Info : Apr 14 00:00:00 UTM5 Logger: New ` Info : ' stream: /netup/utm5/log/main.log
Info : Apr 14 00:00:00 UTM5 Logger: New `?Debug : ' stream: /netup/utm5/log/debug.log
Notice: Apr 14 00:00:00 ModMap: Log file reopened
ERROR : Apr 14 00:00:00 RfwPlugin: rules list is empty, nothing to exec
Info : Apr 14 00:00:00 UTM5 DBA: user 5 reached balance -3.000000
ERROR : Apr 14 00:00:00 RfwPlugin: rules list is empty, nothing to exec
ERROR : Apr 14 00:00:00 RfwPlugin: rules list is empty, nothing to exec
ERROR : Apr 14 00:00:00 RfwPlugin: rules list is empty, nothing to exec
ERROR : Apr 14 00:00:00 RfwPlugin: rules list is empty, nothing to exec
Info : Apr 14 00:00:06 UTM5 Logger: New ` Info : ' stream: /netup/utm5/log/main.log
Info : Apr 14 00:00:06 UTM5 Logger: New `?Debug : ' stream: /netup/utm5/log/debug.log
Notice: Apr 14 00:00:06 ModMap: Log file reopened
Info : Apr 15 00:00:00 UTM5 Logger: New ` Info : ' stream: /netup/utm5/log/main.log
Очень надеюсь на ваши советы!