elderstar
МаглыТип контенту
Профили
Форум
Календарь
Все, що було написано elderstar
-
Подружить СТГ с левыми скриптами..
тема ответил в elderstar пользователя elderstar в Питання по Stargazer
Оо... Sgconf version: 1.03.7 To add cash use: sgconf -s <server> -p <port> -a <admin> -w <admin_pass> -u <user> -c <add_cash:log message> To set credit use: sgconf -s <server> -p <port> -a <admin> -w <admin_pass> -u <user> -r <credit> To change tariff use: sgconf -s <server> -p <port> -a <admin> -w <admin_pass> -u <user> -t <tariff:now|recalc|delayed> To send message use: sgconf -s <server> -p <port> -a <admin> -w <admin_pass> -u <user> -m <message> .......а у вас какая версия? -
"1. не канекался пптпд с радиусом изза маскарада на 0.0.0.0/0" а как это технически обосновывается?
-
Подружить СТГ с левыми скриптами..
тема ответил в elderstar пользователя elderstar в Питання по Stargazer
Подскажи как это можно сделать(прописать U i D) -
А где был косяк? Поделитесь пожалуйста
-
Подружить СТГ с левыми скриптами..
тема ответил в elderstar пользователя elderstar в Питання по Stargazer
блин..если бы всё вертелось на уровне "добавить бабки/снять" - есстественно так бы и поступили... трафик пользователей конннектящичся по ррр, подсчитывается посторонними скрптами...и старгазер каждые 10 минут данныее о трафике тоже обнуляет до исходных.. -
Доброго времени суток. Пользователи соеденяются посредством рррое-сервера. Модуль ВПН показал себя ужасно, по непонятным причинам падая..это я писалв других темах..Мы переписали старые скрипты на перле по подсчету трафика по ррр под базу старгазера. Расчет был на то, что при отключенной поддержке ВПН старгазер не бдет трогать юзеров, коннектящихся по ррр, тобишь выполнять только сьем абонки/релдактировние и т д...и в тоже время юзверя, соеденяющиеся посредством авторизатора - их бы не трогали скрипты.. теоретически все выглядело нормально, пока не выяснили что при внесении бабла в таблицу users при включенном Старгазере -СТГ через некоторое время "синхронизировался", удаляя все сторонние изменения. В том числе данные подсчета траффика по ВПН. Это конечно замечательное его свойство)), но хотелось бы всётаки подружить.. "синхронизация" прходит примерно каждые 10 минут.. -- Че подскажете?
-
может из-за того что уже конец рабочего дня.. по русски плз :tongue: :tongue:
-
может и написано - но это ни к чему не приводит еще надо поменять пути на флагах в makefile.conf..там =/usr/local.... прибиваем /usr/lib - начинает работать
-
может и написано - но это ни к чему не приводит еще надо поменять пути на флагах в makefile.conf..там =/usr/local.... прибиваем local
-
запустил старгазер 2.404 с мускулом и радиусом в режиме debug коннект конфигуратора убивает сервер rsconf.cpp > 15:35:58 > Connection accepted from 10.10.10.117 rsconf.cpp > 15:35:58 > RecvHdr - ok buf = SG04 sizeof(STG_HEADER) = 4 configproto.cpp > 15:35:58 > ParseXMLStart configproto.cpp > 15:35:58 > Start parser.cpp > 15:35:58 > PARSER_GET_SERVER_INFO::ParseStart parser.cpp > 15:35:58 > PARSER_GET_SERVER_INFO::ParseEnd parser.cpp > 15:35:58 > PARSER_GET_SERVER_INFO CreateAnswer configproto.cpp > 15:35:58 > currParser == NULL rsconf.cpp > 15:35:58 > End was detected rsconf.cpp > 15:35:58 > ReciveSendConf close rsconf.cpp > 15:35:58 > CONFIGPROTO: Ready to accept rsconf.cpp > 15:35:58 > Connection accepted from 10.10.10.117 rsconf.cpp > 15:35:58 > RecvHdr - ok buf = SG04 sizeof(STG_HEADER) = 4 configproto.cpp > 15:35:58 > ParseXMLStart configproto.cpp > 15:35:58 > Start parser.cpp > 15:35:58 > PARSER_GET_SERVER_INFO::ParseStart configproto.cpp > 15:35:58 > Start parser.cpp > 15:35:58 > PARSER_GET_USERS::ParseStart configproto.cpp > 15:35:58 > Start Segmentation fault в конфигураторе я виду: Сервер сообщает об ошибке: Recv data answer error!
-
libmysqlclient_r.so.15 (libc6) => /usr/lib/mysql/libmysqlclient_r.so.15 libmysqlclient_r.so.10 (libc6) => /usr/lib/mysql/libmysqlclient_r.so.10 libmysqlclient.so.15 (libc6) => /usr/lib/mysql/libmysqlclient.so.15 libmysqlclient.so.10 (libc6) => /usr/lib/mysql/libmysqlclient.so.10
-
мля...моя невнимательность меня убьет: правильно LDFLAGS += /usr/lib/libmysqlclient.so.10.0.0 -L /usr/lib
-
новая напасть: /usr/sbin/stargazer start /etc/stargazer stg_timer.cpp > 10:49:25 > STG_TIMER started. Time: 1200559765 main.cpp > 10:49:25 > LoadStoragePlugin error main.cpp > 10:49:26 > KillExecuters pid=3752 в логе: Stg v. Stg 2.404 2008-01-17 10:49:25 -- Message queue created successfully. msgKey=5555 msgID=196608 2008-01-17 10:49:25 -- Timer thread started successfully. 2008-01-17 10:49:25 -- Storage plugin loading failed: /usr/lib/stg/mod_store_mysql.so: undefined symbol: mysql_select_db 2008-01-17 10:49:25 -- Load StoragePlugin error. 2008-01-17 10:49:26 -- Queue removed successfully. 2008-01-17 10:49:26 -- StgTimer: Stop successfull. 2008-01-17 10:49:26 -- Stg stopped successfully.
-
Модуль скомпилился.. include ../../../../../Makefile.conf PROG = mod_store_mysql.so SRCS = ./mysql_store.cpp #LIBS = -lconffiles -lstg_common #LIBS = -lmysqlclient include ../../Makefile.in SEARCH_DIRS += -I /usr/include LDFLAGS += - /usr/lib/libmysqlclient.so.10.0.0 -L /usr/lib В последней строке пришлось прописывать всё явно
-
скопировал конфиг alferov-a и поправил пути итог: make g++ -c mysql_store.cpp -g3 -I/usr/local/include -Wall -fPIC -I /home/stg-2.404.9.7.src/stg-2.404.9.7/projects/stargazer/../../include -I /usr/include -DDEBUG -DLINUX g++ mysql_store.o -L/usr/local/lib -shared -L/home/stg-2.404.9.7.src/stg-2.404.9.7/projects/stargazer/../../lib -Wl,-rpath,/usr/lib/stg -lmysqlclient -L /usr/lib -o mod_store_mysql.so /usr/bin/ld: cannot find -lmysqlclient collect2: ld returned 1 exit status make: *** [mod_store_mysql.so] Ошибка 1
-
include ../../../../../Makefile.conf PROG = mod_store_mysql.so SRCS = ./mysql_store.cpp #LIBS = -lconffiles -lstg_common LIBS = -lmysqlclient include ../../Makefile.in ............ :-/ :-/ :-/
-
Вобщем, так... к mysqlclient надо бы в доке дописать mysql-devel сделал как сказал madf..файлы лежали в /usr/lib/mysql типа того Итог манипуляций(ржу): make: *** Нет правила для сборки цели `-lmysqlclient', требуемой для `mod_store_mysql.so'. Останов.
-
Stargazer+mysql+freeradius_mysql+vpn+stg-web
тема ответил в -HS- пользователя elderstar в Модулі для Stargazer
Мое.. привязываем к ip-up.local #!/bin/bash echo "start shaper" IF=$1 RATE=16kbit ADDR=$2 BUFF=1600 USER=$3 usr="stg_usr" pass="pass" db="stg_db" sql="SELECT \`Tariff\` FROM \`users\` WHERE (\`LOGIN\`= \"$USER\")" sql_res=`mysql -e "$sql" --user="$usr" --password="$pass" "$db" ` ultima_res=`echo $sql_res|sed -e "s/Tariff //"` if [ "x$ultima_res" = "x1024" ]; then RATE=1024kbit BUFF=102400 elif [ "x$ultima_res" = "x64" ]; then RATE=64kbit BUFF=6400 elif [ "x$ultima_res" = "x128" ]; then RATE=128kbit BUFF=12800 elif [ "x$ultima_res" = "x256" ]; then RATE=256kbit BUFF=25600 elif [ "x$ultima_res" = "x96" ]; then RATE=96kbit BUFF=9600 fi echo "start USER= $USER logdev = $IF , RATE = $RATE, tariff= $ultima_res" >>/var/log/shaper.log #exit tc qdisc del dev $IF root tbf rate 16kbit latency 20ms buffer 1600 tc qdisc add dev $IF root tbf rate $RATE latency 20ms buffer $BUFF exit 0 -
разрабы..плз! отзовитесь! Всё ужасно или может еще хуже? :-/ :halloween:
-
Проверил /usr/lib/stg модуля mysql_store.so нету... вообще он, в /plugins/store/mysql не создался.. сделал отдельно make там: g++ -c mysql_store.cpp -g3 -I/usr/local/include -Wall -fPIC -I /home/stg-2.404.9.7.src/stg-2.404.9.7/projects/stargazer/../../include -DDEBUG -DLINUX mysql_store.cpp:5:25: error: mysql/mysql.h: Нет такого файла или каталога mysql_store.cpp:6:26: error: mysql/errmsg.h: Нет такого файла или каталога mysql_store.h:126: error: 'MYSQL' has not been declared mysql_store.h:127: error: 'MYSQL' has not been declared mysql_store.h:130: error: 'MYSQL' has not been declared mysql_store.h:131: error: 'MYSQL' has not been declared mysql_store.h:133: error: ISO C++ forbids declaration of 'MYSQL' with no type mysql_store.h:133: error: expected ';' before '*' token mysql_store.cpp:210: error: 'MYSQL' has not been declared mysql_store.cpp: In member function 'int MYSQL_STORE::MysqlQuery(const char*, int*) const': mysql_store.cpp:214: error: 'mysql_query' was not declared in this scope mysql_store.cpp: In member function 'virtual int MYSQL_STORE::ParseSettings()': mysql_store.cpp:233: error: 'MYSQL' was not declared in this scope mysql_store.cpp:233: error: expected `;' before 'mysql' mysql_store.cpp:234: error: 'sock' was not declared in this scope mysql_store.cpp:235: error: 'mysql' was not declared in this scope mysql_store.cpp:235: error: 'mysql_init' was not declared in this scope mysql_store.cpp:248: error: 'mysql_real_connect' was not declared in this scope mysql_store.cpp:251: error: 'mysql_error' was not declared in this scope mysql_store.cpp:252: error: 'mysql_close' was not declared in this scope mysql_store.cpp:257: error: 'mysql_select_db' was not declared in this scope mysql_store.cpp:264: error: 'mysql_error' was not declared in this scope mysql_store.cpp:265: error: 'mysql_close' was not declared in this scope mysql_store.cpp:273: error: 'mysql_error' was not declared in this scope mysql_store.cpp:274: error: 'mysql_close' was not declared in this scope mysql_store.cpp:282: error: 'mysql_close' was not declared in this scope mysql_store.cpp: At global scope: mysql_store.cpp:299: error: 'MYSQL' has not been declared mysql_store.cpp: In member function 'bool MYSQL_STORE::IsTablePresent(const std::string&, int*)': mysql_store.cpp:301: error: 'MYSQL_RES' was not declared in this scope mysql_store.cpp:301: error: 'result' was not declared in this scope mysql_store.cpp:303: error: 'mysql_list_tables' was not declared in this scope mysql_store.cpp:306: error: 'mysql_error' was not declared in this scope mysql_store.cpp:307: error: 'mysql_close' was not declared in this scope mysql_store.cpp:311: error: 'mysql_num_rows' was not declared in this scope mysql_store.cpp:314: error: 'mysql_free_result' was not declared in this scope mysql_store.cpp: At global scope: mysql_store.cpp:319: error: 'int MYSQL_STORE::CheckAllTables' is not a static member of 'class MYSQL_STORE' mysql_store.cpp:319: error: 'MYSQL' was not declared in this scope mysql_store.cpp:319: error: 'sock' was not declared in this scope mysql_store.cpp:320: error: expected ',' or ';' before '{' token make: *** [mysql_store.o] Ошибка 1
-
Вообще никак...ни единого варнинга.. но подозрительно то, на мой взгляд, что после ./install не вылетает стандартное: ############# installed /etc/stargazer -settings ................ ############### после ./build debug ....................... g++ -c traffcounter.cpp -g3 -I/usr/local/include -Wall -I /home/stg-2.404.9.7.sr c/stg-2.404.9.7/projects/stargazer/../../include -DDEBUG -DLINUX g++ -c user.cpp -g3 -I/usr/local/include -Wall -I /home/stg-2.404.9.7.src/stg-2. 404.9.7/projects/stargazer/../../include -DDEBUG -DLINUX g++ -c user_property.cpp -g3 -I/usr/local/include -Wall -I /home/stg-2.404.9.7.s rc/stg-2.404.9.7/projects/stargazer/../../include -DDEBUG -DLINUX g++ -c users.cpp -g3 -I/usr/local/include -Wall -I /home/stg-2.404.9.7.src/stg-2 .404.9.7/projects/stargazer/../../include -DDEBUG -DLINUX g++ -c plugin_runner.cpp -g3 -I/usr/local/include -Wall -I /home/stg-2.404.9.7.s rc/stg-2.404.9.7/projects/stargazer/../../include -DDEBUG -DLINUX g++ admin.o admins.o main.o curr_ip.o settings.o stg_timer.o tariff.o tariffs.o traffcounter.o user.o user_property.o users.o plugin_runner.o /home/stg-2.404.9. 7.src/stg-2.404.9.7/projects/stargazer/../../lib/libstg_logger.so /home/stg-2.40 4.9.7.src/stg-2.404.9.7/projects/stargazer/../../lib/libstg_locker.so /home/stg- 2.404.9.7.src/stg-2.404.9.7/projects/stargazer/../../lib/libstg_common.so /home/ stg-2.404.9.7.src/stg-2.404.9.7/projects/stargazer/../../lib/libscript_executer. so /home/stg-2.404.9.7.src/stg-2.404.9.7/projects/stargazer/../../lib/libdotconf pp.so /usr/lib/libexpat.so /usr/lib/libpthread.so /usr/lib/libdl.so -g3 -I/usr/l ocal/include -Wall -L/usr/local/lib -Wl,-E -L/home/stg-2.404.9.7.src/stg-2.404.9 .7/projects/stargazer/../../lib -Wl,-rpath,/usr/lib/stg -Wl,-rpath-link,/home/st g-2.404.9.7.src/stg-2.404.9.7/projects/stargazer/../../lib -o stargazer make install [root@ftp stargazer]# make install mkdir -m 0755 -p /usr/sbin install -m 0755 -o root -s stargazer /usr/sbin/stargazer make -C /home/stg-2.404.9.7.src/stg-2.404.9.7/projects/stargazer/../../stglibs install make[1]: Entering directory `/home/stg-2.404.9.7.src/stg-2.404.9.7/stglibs' make install -C stg_logger.lib make[2]: Entering directory `/home/stg-2.404.9.7.src/stg-2.404.9.7/stglibs/stg_logger.lib' mkdir -m 0755 -p /usr/lib/stg install -m 0755 -o root -s libstg_logger.so /usr/lib/stg/libstg_logger.so make[2]: Leaving directory `/home/stg-2.404.9.7.src/stg-2.404.9.7/stglibs/stg_logger.lib' make install -C stg_locker.lib make[2]: Entering directory `/home/stg-2.404.9.7.src/stg-2.404.9.7/stglibs/stg_locker.lib' mkdir -m 0755 -p /usr/lib/stg install -m 0755 -o root -s libstg_locker.so /usr/lib/stg/libstg_locker.so make[2]: Leaving directory `/home/stg-2.404.9.7.src/stg-2.404.9.7/stglibs/stg_locker.lib' make install -C crypto.lib make[2]: Entering directory `/home/stg-2.404.9.7.src/stg-2.404.9.7/stglibs/crypto.lib' mkdir -m 0755 -p /usr/lib/stg install -m 0755 -o root -s libstg_crypto.so /usr/lib/stg/libstg_crypto.so make[2]: Leaving directory `/home/stg-2.404.9.7.src/stg-2.404.9.7/stglibs/crypto.lib' make install -C common.lib make[2]: Entering directory `/home/stg-2.404.9.7.src/stg-2.404.9.7/stglibs/common.lib' mkdir -m 0755 -p /usr/lib/stg install -m 0755 -o root -s libstg_common.so /usr/lib/stg/libstg_common.so make[2]: Leaving directory `/home/stg-2.404.9.7.src/stg-2.404.9.7/stglibs/common.lib' make install -C script_executer.lib make[2]: Entering directory `/home/stg-2.404.9.7.src/stg-2.404.9.7/stglibs/script_executer.lib' mkdir -m 0755 -p /usr/lib/stg install -m 0755 -o root -s libscript_executer.so /usr/lib/stg/libscript_executer.so make[2]: Leaving directory `/home/stg-2.404.9.7.src/stg-2.404.9.7/stglibs/script_executer.lib' make install -C conffiles.lib make[2]: Entering directory `/home/stg-2.404.9.7.src/stg-2.404.9.7/stglibs/conffiles.lib' mkdir -m 0755 -p /usr/lib/stg install -m 0755 -o root -s libconffiles.so /usr/lib/stg/libconffiles.so make[2]: Leaving directory `/home/stg-2.404.9.7.src/stg-2.404.9.7/stglibs/conffiles.lib' make install -C hostallow.lib make[2]: Entering directory `/home/stg-2.404.9.7.src/stg-2.404.9.7/stglibs/hostallow.lib' mkdir -m 0755 -p /usr/lib/stg install -m 0755 -o root -s libhostallow.so /usr/lib/stg/libhostallow.so make[2]: Leaving directory `/home/stg-2.404.9.7.src/stg-2.404.9.7/stglibs/hostallow.lib' make install -C pinger.lib make[2]: Entering directory `/home/stg-2.404.9.7.src/stg-2.404.9.7/stglibs/pinger.lib' mkdir -m 0755 -p /usr/lib/stg install -m 0755 -o root -s libstg_pinger.so /usr/lib/stg/libstg_pinger.so make[2]: Leaving directory `/home/stg-2.404.9.7.src/stg-2.404.9.7/stglibs/pinger.lib' make install -C dotconfpp.lib make[2]: Entering directory `/home/stg-2.404.9.7.src/stg-2.404.9.7/stglibs/dotconfpp.lib' mkdir -m 0755 -p /usr/lib/stg install -m 0755 -o root -s libdotconfpp.so /usr/lib/stg/libdotconfpp.so make[2]: Leaving directory `/home/stg-2.404.9.7.src/stg-2.404.9.7/stglibs/dotconfpp.lib' make[1]: Leaving directory `/home/stg-2.404.9.7.src/stg-2.404.9.7/stglibs' make -C /home/stg-2.404.9.7.src/stg-2.404.9.7/projects/stargazer/plugins install make[1]: Entering directory `/home/stg-2.404.9.7.src/stg-2.404.9.7/projects/stargazer/plugins' make install -C authorization/ao make[2]: Entering directory `/home/stg-2.404.9.7.src/stg-2.404.9.7/projects/stargazer/plugins/authorization/ao' mkdir -m 0755 -p /usr/lib/stg install -m 0755 -o root -s mod_auth_ao.so /usr/lib/stg/mod_auth_ao.so make[2]: Leaving directory `/home/stg-2.404.9.7.src/stg-2.404.9.7/projects/stargazer/plugins/authorization/ao' make install -C authorization/inetaccess make[2]: Entering directory `/home/stg-2.404.9.7.src/stg-2.404.9.7/projects/stargazer/plugins/authorization/inetaccess' mkdir -m 0755 -p /usr/lib/stg install -m 0755 -o root -s mod_auth_ia.so /usr/lib/stg/mod_auth_ia.so make[2]: Leaving directory `/home/stg-2.404.9.7.src/stg-2.404.9.7/projects/stargazer/plugins/authorization/inetaccess' make install -C configuration/sgconfig make[2]: Entering directory `/home/stg-2.404.9.7.src/stg-2.404.9.7/projects/stargazer/plugins/configuration/sgconfig' mkdir -m 0755 -p /usr/lib/stg install -m 0755 -o root -s mod_conf_sg.so /usr/lib/stg/mod_conf_sg.so make[2]: Leaving directory `/home/stg-2.404.9.7.src/stg-2.404.9.7/projects/stargazer/plugins/configuration/sgconfig' make install -C other/ping make[2]: Entering directory `/home/stg-2.404.9.7.src/stg-2.404.9.7/projects/stargazer/plugins/other/ping' mkdir -m 0755 -p /usr/lib/stg install -m 0755 -o root -s mod_ping.so /usr/lib/stg/mod_ping.so make[2]: Leaving directory `/home/stg-2.404.9.7.src/stg-2.404.9.7/projects/stargazer/plugins/other/ping' make install -C other/rscript make[2]: Entering directory `/home/stg-2.404.9.7.src/stg-2.404.9.7/projects/stargazer/plugins/other/rscript' mkdir -m 0755 -p /usr/lib/stg install -m 0755 -o root -s mod_remote_script.so /usr/lib/stg/mod_remote_script.so make[2]: Leaving directory `/home/stg-2.404.9.7.src/stg-2.404.9.7/projects/stargazer/plugins/other/rscript' make install -C store/files make[2]: Entering directory `/home/stg-2.404.9.7.src/stg-2.404.9.7/projects/stargazer/plugins/store/files' mkdir -m 0755 -p /usr/lib/stg install -m 0755 -o root -s mod_store_files.so /usr/lib/stg/mod_store_files.so make[2]: Leaving directory `/home/stg-2.404.9.7.src/stg-2.404.9.7/projects/stargazer/plugins/store/files' make install -C capture/ether_linux make[2]: Entering directory `/home/stg-2.404.9.7.src/stg-2.404.9.7/projects/stargazer/plugins/capture/ether_linux' mkdir -m 0755 -p /usr/lib/stg install -m 0755 -o root -s mod_cap_ether.so /usr/lib/stg/mod_cap_ether.so make[2]: Leaving directory `/home/stg-2.404.9.7.src/stg-2.404.9.7/projects/stargazer/plugins/capture/ether_linux' make install -C capture/ipq_linux make[2]: Entering directory `/home/stg-2.404.9.7.src/stg-2.404.9.7/projects/stargazer/plugins/capture/ipq_linux' mkdir -m 0755 -p /usr/lib/stg install -m 0755 -o root -s mod_cap_ipq.so /usr/lib/stg/mod_cap_ipq.so make[2]: Leaving directory `/home/stg-2.404.9.7.src/stg-2.404.9.7/projects/stargazer/plugins/capture/ipq_linux' make[1]: Leaving directory `/home/stg-2.404.9.7.src/stg-2.404.9.7/projects/stargazer/plugins' # Install etc mkdir -m 0644 -p /etc/stargazer install -m 0644 -o root ./inst/linux/etc/stargazer/stargazer.conf /etc/stargazer/stargazer.conf install -m 0644 -o root ./inst/linux/etc/stargazer/rules /etc/stargazer/rules install -m 0755 -o root ./inst/linux/etc/stargazer/On* /etc/stargazer/ # Install file db mkdir -m 0644 -p /var/stargazer/admins mkdir -m 0644 -p /var/stargazer/tariffs mkdir -m 0644 -p /var/stargazer/users/test install -m 0644 -o root ./inst/var/stargazer/admins/admin.adm /var/stargazer/admins/admin.adm install -m 0644 -o root ./inst/var/stargazer/tariffs/tariff.tf /var/stargazer/tariffs/tariff.tf install -m 0644 -o root ./inst/var/stargazer/users/test/conf /var/stargazer/users/test/conf install -m 0644 -o root ./inst/var/stargazer/users/test/stat /var/stargazer/users/test/stat
-
c моим pppoe-server-om тоже самое.. ponomar, скажите плз версии пакетов, или какое нить подозрительносе сходство
-
2.403. 2.404 пока не рискую ставить
-
./build -debug так? Ато чет собирал - разницы в логах не увидел или --debug?
-
Точно щс не скажу, но чтото вроде двух процессорной системы...нагрзка на CPU 0.01%..остальное тоже по нулям..
