Tags:
create new tag
,
view all tags
---+ Instalação do !PingER na access.sprace.org.br ---++Description * Instruções de instalação do !PingER [[http://www.rnoc.gatech.edu/drupal/FocusAreas/NetworkMonitoring/PingER2][nesta]] página. * Necessário instalar uma biblioteca perl usando =cpan= <pre> perl -MCPAN -e shell cpan> install XML::Simple cpan> quit </pre> * Para instalação no =/usr/local/share/pinger= , como =root= <pre> wget http://www.rnoc.gatech.edu/pinger2/software/pinger-2.0.2.tar.gz tar xzf pinger-2.0.2.tar.gz cd pinger-2.0.2 ./configure make test_prereqs make make install make install_cron </pre> * Software adicional instalado conforme [[http://www-iepm.slac.stanford.edu/pinger/tools/install2.html][estas]] instruções. * Instalação do =ping_data.pl= * Pré-requisito: servidor =httpd= na access : =yum install httpd= . Diretório cgi em =/var/www/cgi-bin/= * <pre> cd /var/www/cgi-bin/ wget http://www.slac.stanford.edu/comp/net/mon/tool/ping_data.pl wget http://cgi-lib.berkeley.edu//cgi-lib.pl.txt mv cgi-lib.pl.txt cgi-lib.pl </pre> * Editar as seguintes linhas: <pre> require "/var/www/cgi-bin/cgi-lib.pl"; my $stats_dir = "/usr/local/share/pinger/data"; my $sites_fn = "/usr/local/share/pinger/beacons.txt"; </pre> * =chmod a+x ping_data.pl cgi-lib.pl= * Você deve observar [[http://access.sprace.org.br/cgi-bin/ping_data.pl][esta]] página. *Instalação do servidor traceroute, ainda no diretório =cgi-bin= <pre> wget http://www.slac.stanford.edu/comp/net/traceroute/traceroute.pl chmod a+x traceroute.pl </pre> * Você deve observar [[http://access.sprace.org.br/cgi-bin/traceroute.pl][esta]] página. * Instalar um executável para limpar os dados periódicamente, rodando todo dia 28 do mês à meia-noite <pre> cd /usr/local/share/pinger/ wget http://www.slac.stanford.edu/comp/net/mon/tool/pinger_trimmer.pl chmod a+x pinger_trimmer.pl crontab -e 0 0 28 * * /usr/local/share/pinger/pinger_trimmer.pl </pre> Um alias foi feito no nosso servidor DNS (osg-ce) p/ a access no DNS com o nome pinger.sprace.org.br. <pre> vim /var/named/chroot/var/named/sprace.org.br.zone pinger IN CNAME access </pre> lembrar de atualizar o serial e restartar o =named= ---++Updates ---+++Rogério em 04/09/2010 * Instruções da instalação antiga, no servidor spruna (fevereiro/2006) <pre> Monitoring server: spruna - Intel server with SL release 4.1 (Beryllium) HTTP server: Apache 2.0.52 (http://spruna.if.usp.br) Perl interpreter: 5.8.5 Server detailed information (list of environment variables): http://spruna.if.usp.br/cgi-bin/env.pl Installation instructions at: http://pinger.fnal.gov/frame_ping_instruct.html (1) timeping.pl (1.1.18) taken from http://pinger.fnal.gov/timeping.pl, installed at /usr/local/netmon/ and made executable with chmod command. (2) Variables in timepng.pl were set to: $ping_data_dir --> /usr/local/netmon $ping --> /bin/ping $ping_cmd --> set for AIX, IRIX, Linux, etc (3) File ping_dest.txt created at /usr/local/netmon/ping_dest.txt (4) Two entries to crontab were added 15,45 * * * * /usr/local/netmon/timeping.pl \ /usr/local/netmon/ping_dest.txt 1000 16,46 * * * * /usr/local/netmon/timeping.pl \ /usr/local/netmon/ping_dest.txt 100 (which one should we use? or both?) Answer (Aziz Allaudin Rehmatullah, SLAC): > Just eliminate the 100 and 1000 and use one crontab. > /usr/local/netmon/ping_dest.txt (5) ping_data.pl (1.1.4) taken from http://pinger.fnal.gov/ping_data.pl and put into our server's CGI directory /var/www/cgi-bin. Then variables in ping_data were set to $stats_dir --> /usr/local/netmon/ (not sure about that!) $sites_fn --> /usr/local/netmon/ping_dest.txt (where should $stats_dir be pointed to?) Answer (Aziz Allaudin Rehmatullah, SLAC): > This should point to where the PingER stores the data (where the data > directory is located). For instance if the raw data (file names like > ping-2005-08.txt are located in /usr/local/netmon/pinger/data , it > would be stats_dir --> /usr/local/netmon/pinger (6) cgi-lib.pl (1.6) taken from http://pinger.fnal.gov/cgi_lib.pl and put in /var/www/cgi-lib/ directory. Extra instructions (Aziz Allaudin Rehmatullah, SLAC - February 2006): Once it s done and the data files are being generated, following steps should be performed for us to properly download your pinger information daily. You do not need to set any firewall permissions. Installed in your cgi-bin directory on your PingER machine (spruna.if.usp.br) should be 2 scripts, ping_data.pl and cgi_lib.pl. If you do not have these scripts, follow the steps below to get them: wget http://pinger.fnal.gov/cgi_lib.pl wget http://pinger.fnal.gov/ping_data.pl http://pinger.fnal.gov/ping_data.pl -O ping_data.pl (note: you may have to adjust the shebang line according to how your machine is configured.) Open cgi-bin/ping_data.pl: (1) edit the line: require "/afs/slac/g/www/cgi-lib/cgi-lib.pl"; to read: require "[cgi-path]/cgi-lib.pl"; where [cgi-path] is the fully qualified path to your cgi-bin dir. (2) edit the line: $stats_dir = "/nfs/oceanus/u1/pinger/wanmon/data"; to read: $stats_dir = "[dir]/data"; where [dir] is the directory where your pinger data is stored. (3) edit the line: $sites_fn = "/afs/slac/www/comp/net/mon/offsite.nodes"; to read: $sites_fn = "[dir]/offsite.nodes"; where [dir] is the directory where your offsite.nodes file is located. Often at the directory you detarred this package within. Once this is done and you've tested that you can see ping_data.pl from a web-browser, send us the URL. We have a script that runs nightly to this particular URL (with the proper cgi variables set) to automatically query your pinger data for the last day's collection of data and stores it in a repository here at SLAC used to present the data at: http://www-iepm.slac.stanford.edu/cgi-wrap/pingtable.pl </pre> ---+++Rogério em 05/09/2010 * Ativação do alias permanente 'pinger.sprace.org.br' no DNS, apontando para o servidor que estiver rodando os scripts do pinger. -- Main.MarcoAndreFerreiraDias - 02 Oct 2009
E
dit
|
A
ttach
|
P
rint version
|
H
istory
: r5
<
r4
<
r3
<
r2
<
r1
|
B
acklinks
|
V
iew topic
|
Ra
w
edit
|
M
ore topic actions
Topic revision: r5 - 2010-09-05
-
RogerioIope
Home
Site map
Main web
Sandbox web
TWiki web
Main Web
Users
Groups
Index
Search
Changes
Notifications
RSS Feed
Statistics
Preferences
P
View
Raw View
Print version
Find backlinks
History
More topic actions
Edit
Raw edit
Attach file or image
Edit topic preference settings
Set new parent
More topic actions
Account
Log In
Copyright © 2008-2025 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki?
Send feedback