Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  PingER SmokePing Integration aims at using Smokepings's rrd tool to visually display pingER's data  in the form of graphs. {

Background

Note

Need some background as to what the format of the pinger files are, and where they are located

RRD Format

Note

you need to mention that the the pinger data is to be converted into rrds. this section needs to determing the mapping between the pinger logs and the rrd data form. indepth description of the rrd creation and data structure needs to be mentioned here. also what are the benefits and disadvantages of the rrd structure.

Package Description

 

The pingER data files are located at /nfs/slac/g/net/pinger/pingerdata/hep/data/ Here is a format of a sample pingER file

Code Block

143.108.30.100 143.108.30.100 www.al.sp.gov.br 200.144.27.132 1000 1049155210 10 10 32 32 33 0 1 2 3 4 5 6 7 8 9 33 33 32 32 32 32 32 32 33 33
143.108.30.100 143.108.30.100 www.al.sp.gov.br 200.144.27.132 1000 1049155210 10 10 31 32 37 0 1 2 3 4 5 6 7 8 9 33 32 32 31 32 32 32 32 32 37
143.108.30.100 143.108.30.100 enterprise.uspnet.usp.br 143.107.151.2 1000 1049155210 10 10 5 6 7 0 1 2 3 4 5 6 7 8 9 7 5 6 6 6 6 7 6 6 6
143.108.30.100 143.108.30.100 enterprise.uspnet.usp.br 143.107.151.2 1000 1049155210 10 10 5 7 20 0 1 2 3 4 5 6 7 8 9 8 5 5 7 7 7 5 6 20 6
143.108.30.100 143.108.30.100 stromboli.incor.usp.br 200.9.95.6 1000 1049155210 10 10 7 7 10 0 1 2 3 4 5 6 7 8 9 8 7 7 7 7 7 10 7 9 9
143.108.30.100 143.108.30.100 stromboli.incor.usp.br 200.9.95.6 1000 1049155210 10 10 7 8 20 0 1 2 3 4 5 6 7 8 9 20 8 7 7 7 7 7 7 8 7
143.108.30.100 143.108.30.100 border2-e04-core.cas.ansp.br 143.106.99.74 1000 1049155210 10 10 5 5 6 0 1 2 3 4 5 6 7 8 9 6 5 6 5 6 6 5 5 5 5
143.108.30.100 143.108.30.100 border2-e04-core.cas.ansp.br 143.106.99.74 1000 1049155210 10 10 5 5 6 0 1 2 3 4 5 6 7 8 9 6 5 5 5 6 5 6 5 6 5

RRD Format

Package Description

SelectSrcDest.pm

This is the Perl module that acts as a daemon process and runs as a cron every night, to call the main conversion module, which is the PingERtoSmokeping.pm. As it traverses the PingER data and converts it into SmokePing format .rrd files using the PingERtoSmokeping.pm, it also enters information into the srcdest.txt file of the data converted. This information includes the name of monitoring sites and under the name of each monitoring site is listed the identification keys corresponding each monitoring site. The identification key consists of the following information with an underscore between each piece of information:

...

Code Block
monitor.niit.edu.pk
monitor.niit.edu.pk_monalisa.niit.edu.pk_1000_10
monitor.niit.edu.pk_monalisa.niit.edu.pk_100_10
monitor.niit.edu.pk_www.niit.edu.pk_1000_10
****
Code Block

 

The four stars separate the information of one
monitoring site from the other. The benefit of this srcdest.txt file is that a
list of keys against which the converted data is available, is formed so that
when a user clicks on one item in the list the graph.cgi can plot the converted
data against the key. Conversely if the file was not there, and the user
entered his choice of monitoring site, remote site, ping packet site, number of
ping packets hoping that the data for this combination is present, he might be
be  wrong. It's easy for the user to select what exists, then to let him guess by
allowing him to make the selection. 

PingERtoSmokeping.pm 

 This This is the main conversion code, which is
called by the daemon process SrcDest.pm daily to convert the data for the last 120 days from that date. After an RRD file has been formed for a single source
and destination pair (and number of bytes per ping and pings per remote site),
then next day only one day's data will be appended at the end of the file and
the data for the first day removed. In this way there will always be data in
the file for the "last" 120 days. It is necessary to mention that PingER files
within a particular folder consist of all the data for a source (one folder for
each source is there).   

CGI Modules 

There are three CGI modules. 

Form.cgi 

Displays the data in srcdest.txt file to the user, so that the user can make his selection

...