Changeset 125

Show
Ignore:
Timestamp:
10/26/10 16:53:14 (12 years ago)
Author:
andreu
Message:

syslog output parameters modification - new web page for monitoring site (log, introduction)

Location:
trunk
Files:
2 added
5 modified

Legend:

Unmodified
Added
Removed
  • trunk/src/renetcol.c

    r121 r125  
    8686static struct sockaddr_in name2; 
    8787static struct sockaddr_in fromName; 
     88char *log = "renetcol"; 
    8889#ifdef READFROMFILE 
    8990  char *myPcapFileName, errBuffer[PCAP_ERRBUF_SIZE]; 
     
    133134#endif 
    134135 
    135   openlog(argv[0], LOG_PID, LOG_USER); 
     136  /*   openlog(argv[0], LOG_PID, LOG_USER);*/ 
     137  openlog(log, NULL, LOG_LOCAL7); 
    136138 
    137139  initCache(); 
  • trunk/web/index.php

    r122 r125  
    3838  include ('menuintro.php'); 
    3939  print "       <div id=\"contenu\">\n"; 
    40   print " <p> ICI texte d'introduction </p>\n"; 
     40  include ('introduction.php'); 
    4141  print "       </div>\n"; 
    4242 } else if ($section == "res") { 
     
    4646  include ('./perf/menulive.php'); 
    4747  print "       <div id=\"contenu\">\n"; 
    48   print " <p> ICI texte d'introduction à la section Collector Live </p>\n"; 
     48  include ('collector_live_intro.php'); 
    4949  print "       </div>\n"; 
    5050 } else if ($section == "perf") { 
  • trunk/web/perf/log.php

    r120 r125  
    11<?php 
    22 
    3 print "A FAIRE"; 
     3$res = `tail -50 /var/log/renetcol.log > /tmp/renetcol_log.txt`; 
     4 
     5$finputlog = fopen("/tmp/renetcol_log.txt",'r'); 
     6 
     7print "<div id=\"contenu\">\n"; 
     8 
     9print "<p>"; 
     10print "<ul>"; 
     11while (!feof ($finputlog)) { 
     12  $line = fgets($finputlog, 512); 
     13  $line = trim($line); 
     14  print "<li>$line</li>"; 
     15 } 
     16print "</ul>"; 
     17print "</p>"; 
     18print "</div>\n"; 
     19fclose($finputlog); 
    420 
    521?> 
  • trunk/web/perf/menulive.php

    r120 r125  
    104104print "        </div> \n"; 
    105105 
     106$res = `cat $TPL_DEF | grep " TId " | wc -l | awk '{print $1}'`; 
     107 
     108if  
     109 
    106110?> 
  • trunk/web/perf/output.php

    r120 r125  
    11<?php 
    22 
    3 print "A FAIRE"; 
     3print "<div id=\"contenu\">\n"; 
     4print "<p> Under construction </p>"; 
     5print "</div>\n"; 
    46 
    57?>