flow-tools для CentOS 5.3 или другие коллекторы netflow (плз, поделитесь опытом использования других коллекторов netflow.)

Обсуждение настройки и работы сервисов, резервирования, сетевых настроек и вопросов безопасности ОС.

Модераторы: SLEDopit, Модераторы разделов

Аватара пользователя
Ufomen
Сообщения: 81
ОС: CentOS 5.3

flow-tools для CentOS 5.3 или другие коллекторы netflow

Сообщение Ufomen »

Появилась необходимость настроить netflow коллектор. Просмотрел несколько статеек выбор пал на
пакет flow-tools. т.к. rpm -а к центосу я не нашел скачал исходники с оф. сайта http://www.splintered.net/sw/flow-tools/
по ссылке ftp://ftp.eng.oar.net/pub/flow-tools/flow-tools-0.66.tar.gz

Поставить их не удалось, make вылетает с ошибкой, решение которой я не нашел.

сделал
# ./configure

Код: Выделить всё

checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for gcc... gcc
checking for C compiler default output... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking for a BSD-compatible install... /usr/bin/install -c
checking whether make sets $(MAKE)... (cached) yes
checking for bison... no
checking for byacc... no
checking for ranlib... ranlib
checking for flex... no
checking for lex... no
checking for yywrap in -lfl... no
checking for yywrap in -ll... no
checking for main in -ly... no
checking for zlibVersion in -lz... yes
checking for allow_severity in -lwrap... yes
checking for dirent.h that defines DIR... yes
checking for library containing opendir... none required
checking how to run the C preprocessor... gcc -E
checking for egrep... grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes

.........................................Удалено................................
..

config.status: creating lib/ftconfig.h
config.status: lib/ftconfig.h is unchanged
config.status: executing depfiles commands

Please subscribe to the flow-tools mailing list by sending a message to
flow-tools-request@splintered.net

Now type make to continue the build process



Запускаю make

Код: Выделить всё

# make
Making all in lib
make[1]: Entering directory `/root/flow-tools-0.66/lib'
make  all-am
make[2]: Entering directory `/root/flow-tools-0.66/lib'
if gcc -I. -I./lib -I. -I. -I.    -g -Wall -g -Wall -MT ftio.o -MD -MP -MF ".deps/ftio.Tpo" \
          -c -o ftio.o `test -f 'ftio.c' || echo './'`ftio.c; \
        then mv ".deps/ftio.Tpo" ".deps/ftio.Po"; \
        else rm -f ".deps/ftio.Tpo"; exit 1; \
        fi
ftio.c: In function ‘readn’:
ftio.c:2270: error: invalid lvalue in assignment
ftio.c: In function ‘writen’:
ftio.c:2295: error: invalid lvalue in assignment
make[2]: *** [ftio.o] Error 1
make[2]: Leaving directory `/root/flow-tools-0.66/lib'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/root/flow-tools-0.66/lib'
make: *** [all-recursive] Error 1


На этом приключения заканчиваются, yum про flow-tools ничего не слышал... RPM под центос я не нашел.
Eсть только под RH7 и пр... http://cng.ateneo.edu/cng/wyu/software/flow-tools.php

Помогите кто сможет (

P.S.
только что попробывал собрать последнюю версию пакета, ответ мало чем отличается...

Код: Выделить всё

# make
Making all in lib
make[1]: Entering directory `/root/flow-tools-0.68/lib'
make  all-am
make[2]: Entering directory `/root/flow-tools-0.68/lib'
source='ftio.c' object='ftio.o' libtool=no \
        depfile='.deps/ftio.Po' tmpdepfile='.deps/ftio.TPo' \
        depmode=gcc3 /bin/sh ../depcomp \
        gcc -I. -I./lib -I. -I. -I.    -g -Wall -g -Wall -c `test -f 'ftio.c' || echo './'`ftio.c
ftio.c: In function ‘readn’:
ftio.c:2270: error: invalid lvalue in assignment
ftio.c: In function ‘writen’:
ftio.c:2295: error: invalid lvalue in assignment
make[2]: *** [ftio.o] Error 1
make[2]: Leaving directory `/root/flow-tools-0.68/lib'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/root/flow-tools-0.68/lib'
make: *** [all-recursive] Error 1
Спасибо сказали:
Аватара пользователя
sash-kan
Администратор
Сообщения: 13939
Статус: oel ngati kameie
ОС: GNU

Re: flow-tools для CentOS 5.3 или другие коллекторы netflow

Сообщение sash-kan »

гхм. а шестая ссылка в google://centos+flow-tools разве не в тему?
http://www.linux-archive.org/centos/348805...ntos-5-3-a.html
Писать безграмотно - значит посягать на время людей, к которым мы адресуемся, а потому совершенно недопустимо в правильно организованном обществе. © Щерба Л. В., 1957
при сбоях форума см.блог
Спасибо сказали:
Аватара пользователя
Ufomen
Сообщения: 81
ОС: CentOS 5.3

Re: flow-tools для CentOS 5.3 или другие коллекторы netflow

Сообщение Ufomen »

Да, вижу!
Действительно странно что я ее не нашел... Никогда не пишу на форуме не попытавшись разобраться самостоятельно.

Вообще как я понял flow-tools Не единственный вариант, если кто поделится опытом использования других коллекторов, как удачным так и негативным, буду очень благодарен.
Спасибо сказали: