root/trunk/web/conf/bgpas.php @ 120

Revision 120, 0.9 KB (checked in by andreu, 13 years ago)

first monitoring web site

RevLine 
[120]1<?php
2
3$CONFfinputAS = fopen($bgpas_list_file,'r');
4
5print "<div id=\"contenu\">\n";
6
7print "<p> Below, the list of BGP AS defined in your configuration file: </p>\n";
8print "<p>$bgpas_list_file</p>\n";
9
10$AS_TABLE_INBUILT = "";
11$nb_bgpas = 0;
12$AS_TABLE_INBUILT .= "<table class=\"fields\">\n";
13$AS_TABLE_INBUILT .= "<tr> <th>BGP AS</th> <th>Sampling Value</th> </tr>\n";
14while (!feof ($CONFfinputAS)) {
15  $CONFline = fgets($CONFfinputAS, 512);
16  $CONFline_split = split("\t",$CONFline);
17  $CONFas $CONFline_split[0];
18  $CONFsamp $CONFline_split[1];
19  if ($CONFas) {
20    $nb_bgpas += 1;
21    $AS_TABLE_INBUILT .= "<tr>\n";
22    $AS_TABLE_INBUILT .= "<td>$CONFas</td><td>$CONFsamp</td>\n";
23    $AS_TABLE_INBUILT .= "</tr>\n";
24  }
25 }
26$AS_TABLE_INBUILT .= "</table>";
27
28fclose($CONFfinputAS);
29
30print "BGP AS Number:<br> defined: $CONF_MAX_BGPAS,<br> read: $nb_bgpas<br>\n";
31print "$AS_TABLE_INBUILT";
32
33
34?>
Note: See TracBrowser for help on using the browser.