Changeset 126 for trunk

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

New PHP script used in crontab to generate graphics posted on the self-monitoring web site

Location:
trunk
Files:
1 added
2 modified

Legend:

Unmodified
Added
Removed
  • trunk/web/perf/menulive.php

    r125 r126  
    3434$RouterEngineID = array(); 
    3535$finputTPL = fopen($TPL_DEF,'r'); 
     36$TPLNumberTotal = 0; 
     37$OTPLNumberTotal = 0; 
    3638while (!feof ($finputTPL)) { 
    3739  $line = fgets($finputTPL, 512); 
    3840  $line_split = split(" ",$line); 
     41  if ( $line_split[1] == "OpTId" ) { 
     42     $OTPLNumberTotal += 1; 
     43  } 
    3944  if ( $line_split[1] == "TId" ) { 
     45    $TPLNumberTotal += 1; 
    4046    $rtr_tmp = $line_split[0]; 
    4147    if ($RouterEngineID) { 
     
    104110print "        </div> \n"; 
    105111 
    106 $res = `cat $TPL_DEF | grep " TId " | wc -l | awk '{print $1}'`; 
    107  
    108 if  
     112##$res = `cat $TPL_DEF | grep " TId " | wc -l | awk '{print $1}'`; 
    109113 
    110114?> 
  • trunk/web/perf/tpl.php

    r120 r126  
    2727  /* no tpl choiced */ 
    2828  print " <h2> List of Routers by Engine & Template number</h2> \n"; 
    29   print "<p> An engine (aka sourceID) represents an exporter and we can have few templates by engine (function of interfaces numbers and/or services). Template definition can be found in vertical menu. For more detail on engine and template see <a href=\"https://www.cisco.com/en/US/technologies/tk648/tk362/technologies_white_paper09186a00800a3db9.html\"> the CISCO Documentation</a>. </p>\n"; 
     29  print "<p>"; 
     30  print " An engine (aka sourceID) represents an exporter and we can have few templates by engine (function of interfaces numbers and/or services). Template definition can be found in vertical menu. For more detail on engine and template see <a href=\"https://www.cisco.com/en/US/technologies/tk648/tk362/technologies_white_paper09186a00800a3db9.html\"> the CISCO Documentation</a>.<br>\n"; 
     31  print " RENETCOL runs with $TPLNumberTotal Templates and $OTPLNumberTotal Optional Templates definitions.\n"; 
     32  print "</p>"; 
    3033  print "<h3> Routers with 6 engines or more </h3>\n"; 
    3134  print "<table class=\"fields\">\n";