...
Note |
---|
Please provide a project overview with information as to what the package does |
Package Description
Module Modules | Function |
---|---|
SelectConvSrcDest1.pm | This program is to be setup as a cron job to run every 24 hours (after installing on a server with a PingER data source) |
PingERtoSmokeping.pm | PingERtoSmokeping.pm is a tool to convert PingER data files into Smokeping data files. The output of this program is an rrd file for a SourceSite_DestinationSite_PacketsSize_NumberOfPing combination present in a PingER data file. This tool does not take any arguments from command line. |
Configuration files | Function |
srcdest.txt | The file that stores unique SourceSite_DestinationSite_PacketsSize_NumberOfPings(maximum) combinations found in PingER data. |
CGI CGIs | Function |
form.cgi | Displays the SourceSite_DestinationSite_PacketsSize_NumberOfPings(maximum) RRDs(data) available for the monitoring site or node slected from pingtable.pl by user. |
graph.cgi | Generates graphs from the rrd files on the fly and display them to the user and then deletes the graph from cache |
saveimage.cgi | Displays the contents of the image to the user |
Detailed description can be found at http://maggie.niit.edu.pk/newwebsite/federation_projectdesc2.html
Installation
Note |
---|
How does one install the package? i want instructions, not a diary of what you did |
...
SelectConvSrcDest1.pm
- Modify the following path to point to the bin directory containing the PingERtoSmokeping.pm
Code Block use lib qw(/home/bin);
- Change following paths according to local system. Point this path to the pinger data files directory
Code Block my $some_dir="/home/pinger/pingerdata/hep/data";
- Point this path to the directory SRCDEST_FILE
Code Block my $srcdest="/home/SRCDEST_FILE";
PingERtoSmokeping.pm
- When installing PingERtoSmokeping, this file has to be adjusted to fit your local system. Two paths have to be changed. These path is located at the begining of PingERtoSmokeping:The $main_path should point to the source folder which contains the PingER files
Code Block my $main_path='/home/PingER_Data_Storage/';
- The $pathofrrdcache should point to the folder RRDCache, which will contain the RRDs
OtherParams2.cgiCode Block my $pathofrrdcache="/home/RRDCache";
- Change the mainpath to point to the srcdest.txt file
Code Block my $mainpath="/home/asma/SRCDEST_FILE/srcdest.txt";
- Change this path to point to the folder contaning the pinger.new.cf file:
mon-libCode Block $base_dir="/home/asma/pinger";
- Add following lines to the current mon-lib, rigth above the if ($type =~ /HISTO/) or use the mon-lib file available with the distribution
pingtable.plCode Block if ($type =\~ /SMOKE/) { $site = "$table\[$i\]\[$nodecolumn-5\]"; if($FORM{'by'}=~/node/) {$more = "&by=node";} if($FORM{'by'}=~/site/) {$more = "&by=site";} $label = ""; $min = ""; $max=""; $data = ""; }
- Add the following line into pingtable.pl
Code Block $config{URLCOLUMN0} = "SMOKE http://203.99.50.206/cgi-bin/asma/OtherParams2.cgi?src_regexp= ";
- This is to be added above the following line:
Graph.cgiCode Block $config{URLCOLUMN1} = "COLLECTION http://www.hep.net/cgi-bin/graph_pings.pl?src_regexp= ";
- Change the following path to point to 'rrdtool' installation
Code Block use lib qw( /usr/local/rrdtool-1.2.12/lib/perl );
- Change following link(present on line 36,242) to point to installation of Graph.cgi:
Code Block http://www.<path-of-server>.com/cgi-bin/graph.cgi
- also modify the following relative path to GraphCache from folder containg Graph.cgi
Code Block my $imgsrc='../GraphCache'; It is used in: line (IMG SRC=\'$imgsrc/$destlink1.png\') And line (IMG SRC=\'$imgsrc/$destlink1"."_mini.png\')
Deployment of PingertoSmokePing
Prerequisite:
Depends on rrdtool version 1.2.12 or newer version of it. Therefore it must be installed. The RRD tool is already installed on PingER machine.
...