Changeset 142 for trunk/web

Show
Ignore:
Timestamp:
12/01/10 17:31:51 (12 years ago)
Author:
andreu
Message:

add packet graphic

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/web/data/databgpas.php

    r140 r142  
    5656  $res = `rrdtool graph $pngname -s -1D --title "AS $theAS" --vertical-label "bits/s" -W "data source: RENETCOL" DEF:InBytesG=$rrdname:inBytes:AVERAGE DEF:OutBytesG=$rrdname:outBytes:AVERAGE CDEF:input10=InBytesG,8,*,5,/,60,/,$samp,* CDEF:output10=OutBytesG,8,*,5,/,60,/,$samp,* AREA:input10\#8FA3AD:"From your network to AS $theAS\\n" LINE1:output10\#FF5B2B:"From AS $theAS to your network\\n" COMMENT:"\s" COMMENT:"\s" COMMENT:"\c"`; 
    5757  print "<p> <img width=\"497\" heigth=\"189\" src=\"$pngname\"> </p> "; 
    58  
    5958  $pngnameWeek = "img_monitoring/".$theAS."_w.png"; 
    6059  $res = `rrdtool graph $pngnameWeek -s -7D --title "AS $theAS" --vertical-label "bits/s" -W "data source: RENETCOL" DEF:InBytesG=$rrdname:inBytes:AVERAGE DEF:OutBytesG=$rrdname:outBytes:AVERAGE CDEF:input10=InBytesG,8,*,5,/,60,/,$samp,* CDEF:output10=OutBytesG,8,*,5,/,60,/,$samp,* AREA:input10\#8FA3AD:"From your network to AS $theAS\\n" LINE1:output10\#FF5B2B:"From AS $theAS to your network\\n" COMMENT:"\s" COMMENT:"\s" COMMENT:"\c"`; 
    61    
    6260  print "<p> <img width=\"497\" heigth=\"189\" src=\"$pngnameWeek\"> </p> "; 
    6361  $pngnameMonth = "img_monitoring/".$theAS."_m.png"; 
    6462  $res = `rrdtool graph $pngnameMonth -s -31D --title "AS $theAS" --vertical-label "bits/s" -W "data source: RENETCOL" DEF:InBytesG=$rrdname:inBytes:AVERAGE DEF:OutBytesG=$rrdname:outBytes:AVERAGE CDEF:input10=InBytesG,8,*,5,/,60,/,$samp,* CDEF:output10=OutBytesG,8,*,5,/,60,/,$samp,* AREA:input10\#8FA3AD:"From your network to AS $theAS\\n" LINE1:output10\#FF5B2B:"From AS $theAS to your network\\n" COMMENT:"\s" COMMENT:"\s" COMMENT:"\c"`; 
    65    
    6663  print "<p> <img width=\"497\" heigth=\"189\" src=\"$pngnameMonth\"> </p> "; 
    6764  $pngnameYear = "img_monitoring/".$theAS."_y.png"; 
    6865  $res = `rrdtool graph $pngnameYear -s -365D --title "AS $theAS" --vertical-label "bits/s" -W "data source: RENETCOL" DEF:InBytesG=$rrdname:inBytes:AVERAGE DEF:OutBytesG=$rrdname:outBytes:AVERAGE CDEF:input10=InBytesG,8,*,5,/,60,/,$samp,* CDEF:output10=OutBytesG,8,*,5,/,60,/,$samp,* AREA:input10\#8FA3AD:"From your network to AS $theAS\\n" LINE1:output10\#FF5B2B:"From AS $theAS to your network\\n" COMMENT:"\s" COMMENT:"\s" COMMENT:"\c"`; 
    69    
    70   print "<p> <img width=\"497\" heigth=\"189\" src=\"$pngnameYear\"> </p> "; 
     66        print "<p> <img width=\"497\" heigth=\"189\" src=\"$pngnameYear\"> </p> "; 
     67  $pngnamepkts = "img_monitoring/".$theAS."pkts.png"; 
     68##  echo "rrdtool graph $pngnamepkts -s -1D --title \"AS $theAS\" --vertical-label \"packets per seconde\" -W \"data source: RENETCOL\" DEF:InPktsG=$rrdname:inPkts:AVERAGE DEF:OutPktsG=$rrdname:outPkts:AVERAGE CDEF:Pinput10=InPktsG,5,/,60,/,$samp,* CDEF:Poutput10=OutPktsG,5,/,60,/,$samp,* AREA:input10\#8FA3AD:\"From your network to AS $theAS\\n\" LINE1:output10\#FF5B2B:\"From AS $theAS to your network\\n\" COMMENT:\"\s\" COMMENT:\"\s\" COMMENT:\"\c\"  "; 
     69  $res = `rrdtool graph $pngnamepkts -s -1D --title "AS $theAS" --vertical-label "packets per seconde" -W "data source: RENETCOL" --color CANVAS#E8E8E8 --color BACK#5A5A5A --color FONT#FFFFFF DEF:InPktsG=$rrdname:inPkts:AVERAGE DEF:OutPktsG=$rrdname:outPkts:AVERAGE CDEF:Pinput10=InPktsG,5,/,60,/,$samp,* CDEF:Poutput10=OutPktsG,5,/,60,/,$samp,* AREA:Pinput10\#8FA3AD:"From your network to AS $theAS\\n" LINE1:Poutput10\#FF5B2B:"From AS $theAS to your network\\n" COMMENT:"\s" COMMENT:"\s" COMMENT:"\c"`; 
     70  print "<p> <img width=\"497\" heigth=\"189\" src=\"$pngnamepkts\"> </p> "; 
     71 
    7172 } 
    7273print "\n";