[phpBB Debug] PHP Notice: in file /viewtopic.php on line 945: date(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'Europe/Helsinki' for 'EEST/3.0/DST' instead
[phpBB Debug] PHP Notice: in file /viewtopic.php on line 945: getdate(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'Europe/Helsinki' for 'EEST/3.0/DST' instead
BREN forums • View topic - perfSONAR-BUOY, bwctld

perfSONAR-BUOY, bwctld

Cacti, Smokeping, Nagios, Zabbix, perfSONAR и т.н.

Re: perfSONAR-BUOY, bwctld

Postby nina » 09 Jul 2009, 09:13

Наско,

Бих ти препоръчала в отговор на тази заявка perfSONAR Bugzilla https://bugzilla.perfsonar.net/show_bug.cgi?id=813 да опишеш с какво си се сблъскал. AFAIK, покрай мониторинга на LHC OPN https://twiki.cern.ch/twiki/bin/view/LHCOPN e инсталирано perfSONAR-BUOY и вероятно някой ще сподели подробности.
User avatar
nina
 
Posts: 29
Joined: 17 Feb 2009, 18:27

Re: perfSONAR-BUOY, bwctld

Postby aap » 11 Jul 2009, 21:17

Привет на всички!

Наско, минавам направо на въпроса. Инсталирах perfSONAR-BOUY на CentOS 5.3 без никакви проблеми. След стартиране се получава следното
Code: Select all
service pSB.sh start
/usr/lib/perfsonar/services/perfSONAR-BUOY/server/bin/perfsonar-daemon.pl --config /etc/perfSONAR-BUOY/pSB_MA.conf --logger=/etc/perfSONAR-BUOY/pSB_MA_logger.conf --piddir=/var/run --pidfile=pSB_MA.pid --user=perfsonar --group=perfsonar
Use of uninitialized value in concatenation (.) or string at
        /usr/lib/perfsonar/services/perfSONAR-BUOY/server/bin/../lib/perfSONAR_PS/Services/MA/perfSONARBUOY.pm line 380 (#1)
    (W uninitialized) An undefined value was used as if it were already
    defined.  It was interpreted as a "" or a 0, but maybe it was a mistake.
    To suppress this warning assign a defined value to your variables.
   
    To help you figure out what was undefined, perl tells you what operation
    you used the undefined value in.  Note, however, that perl optimizes your
    program and the operation displayed in the warning may not necessarily
    appear literally in your program.  For example, "that $foo" is
    usually optimized into "that " . $foo, and the warning will refer to
    the concatenation (.) operator, even though there is no . in your
    program.
   
/etc/init.d/pSB.sh start: pSB started


И при стартиране наpSB_collector.sh даде следното
Code: Select all
service pSB_collector.sh start
perfSONAR-BUOY Measurement Collector Daemon Started


Резултат от netstat
Code: Select all
Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address               Foreign Address             State       PID/Program name   
tcp        0      0 *:8085                      *:*                         LISTEN      4163/perfsonar.pl (
tcp        0      0 *:8570                      *:*                         LISTEN      4187/bwcollector.pl
tcp        0      0 192.168.0.101:39305         fx-in-f97.google.com:https  ESTABLISHED 3694/firefox       
tcp        0      0 *:ssh                       *:*                         LISTEN      2992/sshd           


За сега въпросната машина се намира унас, но мога утре да инсталирам още една CentOS машина в МУ( или да занеса направо тази ) за да се проведе тест на спокойствие, понеже от другата седмица имам едни други ангажименти и няма да имам много свободно време.

П.П. Нагласих криво-ляво една машина с PerformanceToolkit, тъкмо и нея ще я замъкна утре към МУ. :)
Alexandar Petkov
Medical University
Pleven
User avatar
aap
 
Posts: 43
Joined: 17 Feb 2009, 13:04
Location: Pleven

Re: perfSONAR-BUOY, bwctld

Postby atanas » 12 Jul 2009, 14:00

Брех Алекс -- суперско!
При мен на OpenSUSE не тръгна. Вероятно ще инсталирам CentOS и ще опитам да повторя всичко на нея. Междувременно писах в bugzilla както посъветва Нина и ще изчакам малко за отговор. Ето какво ги питах:
Has anyone succeeded to install and run perfSONAR-BUOY on anything different
than Redhat? I tried on Debian and OpenSuse but failed due to dependency
problems. Since there is no source package of BUOY available (only rpm) I am
curious if you achieved successful installation on anything beside Redhat?

... та ти отговори всъщност преди тях! :wink:
AE51 2A62 FCBE 5E15 C19F 56CD ECC5 2186 0455 9912
User avatar
atanas
Global Moderator
 
Posts: 191
Joined: 17 Feb 2009, 00:34
Location: Plovdiv

Re: perfSONAR-BUOY, bwctld

Postby atanas » 20 Jul 2009, 19:36

Ето как изглежда подкарването на bwctld на CentOS - първи стъпки за мен (Ref.)

Инсталация на iperf:
Code: Select all
wget http://packages.sw.be/iperf/iperf-2.0.4-1.el5.rf.i386.rpm
rpm -ivh iperf-2.0.4-1.el5.rf.i386.rpm


Инсталация на bwctld:
Code: Select all
wget http://software.internet2.edu/rpms/i386/RPMS.main/I2util-1.1-1.i386.rpm
wget http://software.internet2.edu/rpms/i386/RPMS.main/bwctl-client-1.3-1.i386.rpm
wget http://software.internet2.edu/rpms/i386/RPMS.main/bwctl-server-1.3-2.i386.rpm
rpm -ivh I2util-1.1-1.i386.rpm
rpm -ivh bwctl-client-1.3-1.i386.rpm
rpm -ivh bwctl-server-1.3-2.i386.rpm


Корекциите по /etc/ntp.conf: добавих server 194.141.0.1 (другите server ги махнах)
Code: Select all
service ntpd stop
service ntpd start


Корекция в /etc/bwctld/bwctld.conf: добавих iperf_cmd /usr/bin/iperf

Пускането на bwctld
Code: Select all
service bwctld start

/usr/bin/bwctld -c /etc/bwctld -R /var/run
bwctld[6499]: FILE=policy.c, LINE=473, WARNING: regular: Using parents more restrictive limits for duration.
bwctld[6499]: FILE=nuttcp.c, LINE=114, NuttcpAvailable(): nuttcp_cmd unset, using "nuttcp"
bwctld[6499]: FILE=nuttcp.c, LINE=220, NuttcpAvailable(): We were unable to verify that nuttcp is working. Likely you do not have it installed. exit status: 1: output: exec(nuttcp): No such file or directory
bwctld[6499]: FILE=tools.c, LINE=296, Couldn't initialize tool "nuttcp". Disabling it.
/etc/init.d/bwctld start: bwctld started


... и пробата с uran.acad.bg например:
Code: Select all
bwctl -c uran.acad.bg

bwctl: Using tool: iperf
bwctl: 15 seconds until test results available

RECEIVER START
bwctl: exec_line: /usr/bin/iperf -B 194.141.0.7 -s -f b -m -p 5003 -t 10
bwctl: start_tool: 3457099864.686533
------------------------------------------------------------
Server listening on TCP port 5003
Binding to local address 194.141.0.7
TCP window size: 87380 Byte (default)
------------------------------------------------------------
[ 15] local 194.141.0.7 port 5003 connected with 194.141.27.253 port 5003
[ 15] 0.0-10.1 sec 114434048 Bytes 91072958 bits/sec
[ 15] MSS size 1448 bytes (MTU 1500 bytes, ethernet)
bwctl: stop_exec: 3457099878.024556

RECEIVER END


Хоста, на който се случва това е linux.argon.uni-plovdiv.bg и може да се добави в списъка с адреси, на които върви bwctld.

Благодарности на Алекс :Rose:
предстои ми кулминацията на нещата перфсонарските сървиси, пак ще пиша
AE51 2A62 FCBE 5E15 C19F 56CD ECC5 2186 0455 9912
User avatar
atanas
Global Moderator
 
Posts: 191
Joined: 17 Feb 2009, 00:34
Location: Plovdiv

Re: perfSONAR-BUOY, bwctld

Postby atanas » 20 Jul 2009, 21:02

Алекс, малко запецнах с perl модулите (pls help като имаш време). Оттук инсталирах успешно perl-perfSONAR_PS-MDM-perfSONAR-BUOY-config-0.10-5.fc10.noarch.rpm, но се появиха незадоволени зависимости при останалите два пакета:
error: Failed dependencies:
perl(Data::UUID) is needed by perl-perfSONAR_PS-MDM-perfSONAR-BUOY-client-0.10-5.fc10.noarch
perl(LWP::UserAgent) is needed by perl-perfSONAR_PS-MDM-perfSONAR-BUOY-client-0.10-5.fc10.noarch
perl(Log::Log4perl) is needed by perl-perfSONAR_PS-MDM-perfSONAR-BUOY-client-0.10-5.fc10.noarch
perl(Params::Validate) is needed by perl-perfSONAR_PS-MDM-perfSONAR-BUOY-client-0.10-5.fc10.noarch

error: Failed dependencies:
perl(Config::General) is needed by perl-perfSONAR_PS-MDM-perfSONAR-BUOY-server-0.10-5.fc10.noarch
perl(Data::UUID) is needed by perl-perfSONAR_PS-MDM-perfSONAR-BUOY-server-0.10-5.fc10.noarch
perl(Date::Manip) is needed by perl-perfSONAR_PS-MDM-perfSONAR-BUOY-server-0.10-5.fc10.noarch
perl(Error) is needed by perl-perfSONAR_PS-MDM-perfSONAR-BUOY-server-0.10-5.fc10.noarch
perl(Error::Simple) is needed by perl-perfSONAR_PS-MDM-perfSONAR-BUOY-server-0.10-5.fc10.noarch
perl(HTTP::Daemon) is needed by perl-perfSONAR_PS-MDM-perfSONAR-BUOY-server-0.10-5.fc10.noarch
perl(LWP::Simple) is needed by perl-perfSONAR_PS-MDM-perfSONAR-BUOY-server-0.10-5.fc10.noarch
perl(LWP::UserAgent) is needed by perl-perfSONAR_PS-MDM-perfSONAR-BUOY-server-0.10-5.fc10.noarch
perl(Log::Log4perl) is needed by perl-perfSONAR_PS-MDM-perfSONAR-BUOY-server-0.10-5.fc10.noarch
perl(Module::Load) is needed by perl-perfSONAR_PS-MDM-perfSONAR-BUOY-server-0.10-5.fc10.noarch
perl(Net::DNS) is needed by perl-perfSONAR_PS-MDM-perfSONAR-BUOY-server-0.10-5.fc10.noarch
perl(NetAddr::IP) is needed by perl-perfSONAR_PS-MDM-perfSONAR-BUOY-server-0.10-5.fc10.noarch
perl(Params::Validate) is needed by perl-perfSONAR_PS-MDM-perfSONAR-BUOY-server-0.10-5.fc10.noarch
perl(Regexp::Common) is needed by perl-perfSONAR_PS-MDM-perfSONAR-BUOY-server-0.10-5.fc10.noarch
perl(Term::ReadKey) is needed by perl-perfSONAR_PS-MDM-perfSONAR-BUOY-server-0.10-5.fc10.noarch


Пробвах да намеря и инсталирам с yum, но не намерих необходимото. С perl -MCPAN -e shell всичко се добави, но грешките от по-горе не изчезнаха. Имаш ли идея как да се фиксне това? За пръв път виждам CentOS, а с rpm също нямам голям опит.
AE51 2A62 FCBE 5E15 C19F 56CD ECC5 2186 0455 9912
User avatar
atanas
Global Moderator
 
Posts: 191
Joined: 17 Feb 2009, 00:34
Location: Plovdiv

Re: perfSONAR-BUOY, bwctld

Postby aap » 20 Jul 2009, 23:28

Привет! Извинявам се, че тъй късно пиша, но сега пипвам компютър.
Наско, това е чудесно! Обаче виждам, че инсталираш iperf от външен източник. Примерно за улеснение можеш да инсталираш EPEL хранилището. В него ще намериш мисля и незадоволените зависимости. Поне на машината, на която тествах аз имам добавен само него, като допълнително хранилище.
Примерно за улеснение, освен ако вече не си го добавил, можеш да сложиш плъгина fast mirror

Code: Select all
yum install yum-plugin-fastestmirror


За най-голямо улеснение виж направо връзката.

Има една подробност. Добавяйки нови хранилища с пакети е добре да сложиш и това, иначе се получава малко объркване от къде кой пакет идва, вероятни различни версии .. накрая резултата е далеч от очаквания.
Alexandar Petkov
Medical University
Pleven
User avatar
aap
 
Posts: 43
Joined: 17 Feb 2009, 13:04
Location: Pleven

Re: perfSONAR-BUOY, bwctld

Postby atanas » 21 Jul 2009, 08:34

Хай Алекс,
Благодарности за идеята! На мен вчера ми стана ясно, че твоето хранилище е различно от моето, понеже при мен iperf просто нямаше, та реших да си реша проблема без да питам. Ето как протекоха нещата при мен:
Code: Select all
wget http://download.fedora.redhat.com/pub/epel/5/i386/epel-release-5-3.noarch.rpm
rpm -ivh epel-release-5-3.noarch.rpm

и наистина iperf се появи :)
Code: Select all
yum search iperf

iperf.i386 : Measurement tool for TCP/UDP bandwidth performance

после махнах моята инсталация и си добавих iperf от новото хранилище:
Code: Select all
rpm -qa | grep -i iperf
rpm -e iperf-2.0.4-1.el5.rf
yum install iperf.i386

и bwctl си заработи с новия iperf, до тук добре!

В интерес на истината се появиха и доста perl пакети, така че успях да задоволя зависимостите на pS-BUOY client и server, с изключение на един:
error: Failed dependencies:
perl(Data::UUID) is needed by ...

не можах да се усетя какво точно му трябва от всичко това:
Code: Select all
yum search perl | grep Data

libdbi.i386 : Database Independent Abstraction Layer for C
libdbi-drivers.i386 : Database-specific drivers for libdbi
netcdf.i386 : Libraries for the Unidata network Common Data Form (NetCDF v3)
perl-AnyData.noarch : Easy access to data in many formats
perl-Class-DBI.noarch : Simple Database Abstraction
perl-Class-Data-Inheritable.noarch : Inheritable, overridable class data
perl-Crypt-CBC.noarch : Encrypt Data with Cipher Block Chaining Mode
perl-DBD-AnyData.noarch : DBI access to XML, CSV and other formats
perl-DBIx-DBSchema.noarch : Database-independent schema objects
perl-Data-Buffer.noarch : Read/write buffer class for perl
perl-Data-Dump.noarch : Pretty printing of data structures
perl-Data-Dump-Streamer.i386 : Accurately serialize a data structure as Perl
perl-Data-HexDump.noarch : Simple Hexadecial Dumper
perl-Data-Hierarchy.noarch : Handle data in a hierarchical structure
perl-Data-OptList.noarch : Parse and validate simple name/value option pairs
perl-Data-UUID.i386 : Generates Globally/Universally Unique Identifiers
perl-Declare-Constraints-Simple.noarch : Declarative Validation of Data
perl-Ima-DBI.noarch : Database connection caching and organization
perl-PDL.i386 : The Perl Data Language
perl-Test-Base.noarch : Data Driven Testing Framework
rrdtool.i386 : Round Robin Database Tool to store and display time-series data

(ако знаеш кажи)

и просто закърпих нещата така:
Code: Select all
wget http://dag.wieers.com/rpm/packages/perl-Data-UUID/perl-Data-UUID-1.148-1.el5.rf.i386.rpm
rpm -ivh perl-Data-UUID-1.148-1.el5.rf.i386.rpm


след което без проблем се инсталираха и двете:
perl-perfSONAR_PS-MDM-perfSONAR-BUOY-client-0.10-5.fc10.noarch.rpm
perl-perfSONAR_PS-MDM-perfSONAR-BUOY-server-0.10-5.fc10.noarch.rpm


и дори тръгна :)
Code: Select all
service pSB.sh start

/usr/lib/perfsonar/services/perfSONAR-BUOY/server/bin/perfsonar-daemon.pl --config /etc/perfSONAR-BUOY/pSB_MA.conf --logger=/etc/perfSONAR-BUOY/pSB_MA_logger.conf --piddir=/var/run --pidfile=pSB_MA.pid --user=perfsonar --group=perfsonar
Use of uninitialized value in concatenation (.) or string at
/usr/lib/perfsonar/services/perfSONAR-BUOY/server/bin/../lib/perfSONAR_PS/Services/MA/perfSONARBUOY.pm line 380 (#1)
(W uninitialized) An undefined value was used as if it were already
defined. It was interpreted as a "" or a 0, but maybe it was a mistake.
To suppress this warning assign a defined value to your variables.

To help you figure out what was undefined, perl tells you what operation
you used the undefined value in. Note, however, that perl optimizes your
program and the operation displayed in the warning may not necessarily
appear literally in your program. For example, "that $foo" is
usually optimized into "that " . $foo, and the warning will refer to
the concatenation (.) operator, even though there is no . in your
program.

/etc/init.d/pSB.sh start: pSB started


http://linux.argon.uni-plovdiv.bg:8085 :Yahoo!: :beer:
AE51 2A62 FCBE 5E15 C19F 56CD ECC5 2186 0455 9912
User avatar
atanas
Global Moderator
 
Posts: 191
Joined: 17 Feb 2009, 00:34
Location: Plovdiv

Re: perfSONAR-BUOY, bwctld

Postby aap » 21 Jul 2009, 23:59

Привет! Много се радвам, че имаме положителни резултати по въпроса :Yahoo!:
Вариант за максимално задоволяване на зависимости и тонове допълнителни програми може да се намери с добаванято на това тук.
Проведох тест на домашния компютър и всичко мина добре. Предполагам, ти също няма да имаш никакви ядове, но ако има нещо свиркай да го разнищваме.

П.П. Извинявам се, че все по никое време на денонощието пиша, но за съжаление това ми е свободното време за момента :(
Alexandar Petkov
Medical University
Pleven
User avatar
aap
 
Posts: 43
Joined: 17 Feb 2009, 13:04
Location: Pleven

Re: perfSONAR-BUOY, bwctld

Postby atanas » 22 Jul 2009, 09:00

10x Alex! :Rose:
Ще трябва разучаване и в тази насока, хубаво е че имаме писанията в тази тема. Обикновенни не си правя записки какво правя и после възпроизвеждането на нещо направено ми отнепа приблизително същото време. Сега вече няма да е така.
:fool:
AE51 2A62 FCBE 5E15 C19F 56CD ECC5 2186 0455 9912
User avatar
atanas
Global Moderator
 
Posts: 191
Joined: 17 Feb 2009, 00:34
Location: Plovdiv

Previous

Return to Системи за наблюдение и контрол

Who is online

Users browsing this forum: No registered users and 1 guest

cron