glenn       2002/12/30 20:19:31

  Modified:    jk/tools/reports tomcat_trend.pl
  Log:
  Update for mod_jk log changes
  
  Revision  Changes    Path
  1.3       +5 -4      jakarta-tomcat-connectors/jk/tools/reports/tomcat_trend.pl
  
  Index: tomcat_trend.pl
  ===================================================================
  RCS file: /home/cvs/jakarta-tomcat-connectors/jk/tools/reports/tomcat_trend.pl,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- tomcat_trend.pl   16 Dec 2002 13:55:46 -0000      1.2
  +++ tomcat_trend.pl   31 Dec 2002 04:19:31 -0000      1.3
  @@ -127,6 +127,7 @@
   foreach( @logs ) {
      $logfile = $_;
      chomp($logfile);
  +   next if ( $logfile =~ /\.(bz2|gz|zip)$/ );
      @head = `head -1 $logfile`;
      ($mon, $day, $time, $year) = (split /\s+/,$head[0])[1..4];
      ($hour, $min, $sec) = split /:/,$time;
  @@ -228,7 +229,7 @@
            if( $line =~ /\d\)\]: / ) {
               # Handle a mod_jk error
               # print "mod_jk error! " . scalar(localtime($logtime)) . " $line\n";
  -            if( $line =~ /jk_tcp_socket_recvfull failed/ ) {
  +            if( $line =~ /(jk_tcp_socket_recvfull failed|ERROR: Receiving from 
tomcat failed)/ ) {
                  $Global{tomcat_full}++;
                  $Interval{tomcat_full}++;
               } elsif( $line =~ /(ajp_process_callback - write failed|ERROR sending 
data to client. Connection aborted or network problems)/ ) {
  
  
  

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to