SUMMARY: getstats package

From: Rasana P. Atreya (Rasana.Atreya@library.ucsf.edu)
Date: Fri Mar 15 1996 - 14:22:11 CST


I did get a single response, thanks to Kevin Sheehan, but I wasn't able to
figure it out. But I found another package (analog.1.9.5) which is MUCH faster,
AND easy to install and customize.

Kevin's response and my original post follow.

Thanks,
Rasana
---------------------------------------------------------------------------
From: Kevin.Sheehan@uniq.com.au (Kevin Sheehan {Consulting Poster Child})
Date: Wed, 13 Mar 1996 11:39:37 EST

[ Regarding "getstats blues", Rasana.Atreya@library.ucsf.edu writes on Mar 11: ]

> And the errors from truss -e -f are:
> 15673: ioctl(4, TCGETA, 0xEFFFE8F4) Err#25 ENOTTY
> (for 15673: open("/logs/1996/test/Feb", O_RDONLY) = 4)
>
> 15673: ioctl(3, TCGETA, 0xEFFFED4C) Err#25 ENOTTY
> (for 15673: open("/logs/1996/test/Feb", O_RDONLY) = 3)

This probably has nothing to do with it - printf() (or fprintf() more likely)
usually tries to condition a line before output. If it is a file or socket,
then that fails without being a problem.

                l & h,
                kev

---------------------------------------------------------------------------
I have a version 1.2 of the statistics generation package, getstats which I'm
running on a Solaris 2.4 m/c. This was running fine up until last month. Now it
won't work anymore. I tried recompiling it, but it still won't work.
 
So I finally added 2 lines in getstats.12.c to print the line number of the
log it processes. It's breaking at specific points. If I delete these lines,
it seems to work fine. I tried to anaylze the "different" lines, but they
seem the same to me.
  
I'm including 2 example lines which cause the break, and the lines
sequentially above and below it. Hope it'll make sense to you:
   
rport8.microweb.com - - [24/Feb/1996:17:06:38 -0800] "GET /lib/sys/mel/mmplus/images/LibraryLogo-1-39x52.gif HTTP/1.0" 200 305
rport8.microweb.com - - [24/Feb/1996:17:06:53 -0800] "GET /lib/sys/mel/password.html HTTP/1.0" 200 3342
rport8.microweb.com - - [24/Feb/1996:17:06:55 -0800] "GET /lib/sys/mel/images/bannerlogo.gif HTTP/1.0" 200 4395
    
198.247.170.163 - - [28/Feb/1996:11:52:21 -0800] "GET /images/comments.gif HTTP/1.0" 200 572
198.247.170.163 - - [28/Feb/1996:11:52:22 -0800] "GET /images/blueball.gif HTTP/1.0" 200 326
198.247.170.163 - - [28/Feb/1996:11:52:22 -0800] "GET /images/LibraryLogo-1-39x52.gif HTTP/1.0" 200 305
     
      
And the errors from truss -e -f are:
15673: ioctl(4, TCGETA, 0xEFFFE8F4) Err#25 ENOTTY
(for 15673: open("/logs/1996/test/Feb", O_RDONLY) = 4)

15673: ioctl(3, TCGETA, 0xEFFFED4C) Err#25 ENOTTY
(for 15673: open("/logs/1996/test/Feb", O_RDONLY) = 3)

       
To test the above, I've been using: ./getstats.test -M -da -p -t 20 -l LOG
        
Thanks a lot,
Rasana

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~ Rasana Atreya Voice: (415) 476-3623 ~
~ Programmer/Analyst Fax: (415) 476-4653 ~
~ Library & Ctr for Knowledge Mgnt, Univ. of California at San Francisco ~
~ 530 Parnassus Ave, Box 0840, San Francisco, CA 94143-0840 ~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~



This archive was generated by hypermail 2.1.2 : Fri Sep 28 2001 - 23:10:55 CDT