SelectConvSrcDest1.pm

  • Modify the following path to point to the bin directory containing the PingERtoSmokeping.pm
    use lib qw(/home/bin);
    
  • Change following paths according to local system. Point this path to the pinger data files directory
    my $some_dir="/home/pinger/pingerdata/hep/data";
    
  • Point this path to the directory SRCDEST_FILE
    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
  • my $main_path='/home/PingER_Data_Storage/';
    
  • The $pathofrrdcache should point to the folder RRDCache, which will contain the RRDs
    my $pathofrrdcache="/home/RRDCache"; 
    
    Form.cgi
  • Change the mainpath to point to the srcdest.txt file
    my $mainpath="/home/SRCDEST_FILE/srcdest.txt";
    
  • Change this path to point to the folder contaning the pinger.new.cf file:
    $base_dir="/home/pinger";
    
    mon-lib
  • Add following lines to the current mon-lib, rigth above the if ($type =~ /HISTO/) or use the mon-lib file available with the distribution
    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 = "";
    }
    
    pingtable.pl
  • Add the following line into pingtable.pl
    $config{URLCOLUMN0} = "SMOKE http://www.<server>.com/OtherParams2.cgi?src_regexp= ";
    
  • This is to be added above the following line:
    $config{URLCOLUMN1} = "COLLECTION http://www.hep.net/cgi-bin/graph_pings.pl?src_regexp= ";
    
    Graph.cgi
  • Change the following path to point to 'rrdtool' installation 
    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:
    http://www.<path-of-server>.com/cgi-bin/graph.cgi
    
  • also modify the following relative path to GraphCache from folder containg Graph.cgi
    my $imgsrc='../GraphCache';
    
    It is used in:
    line (IMG SRC=\'$imgsrc/$destlink1.png\')
    And
    line (IMG SRC=\'$imgsrc/$destlink1"."_mini.png\')
    
  • No labels