Menu ▾ ▴

#1 data-worms and log-rotation

open-postponed
None
1
2003-07-07
2002-05-06
No

The worms module does not correctly detect rotated
httpd logfiles. Data-sampling stops at the time of
rotation.

Discussion

  • Andrew Bramble

    Andrew Bramble - 2002-10-17

    Logged In: YES
    user_id=608236

    Berni , I had similar trauma with data-squid , making
    read-data.pl aware of the fact that someservice.log had
    been rotated. Instead of keeping a file that stores the
    $lastread, $lastlineread. I stored the File::Stat $st_ino
    number, which does not change while the log is being written
    to, but DOES change when it's rotated (at least in the Linux
    werld).

    The other value I store between script runs is the value of
    $whereInFile = tell LOGHANDLE; after the last read within
    the interval.

    Check out the methods remember and recollect in squid.pm
    which I emailed to you today.

    Andrew B

     
  • Bernd Pissny

    Bernd Pissny - 2003-07-07
    • priority: 2 --> 1
    • assigned_to: nobody --> bernisys
    • status: open --> open-postponed
     
  • Bernd Pissny

    Bernd Pissny - 2003-07-07

    Logged In: YES
    user_id=327778

    okay, in 0.5.0pre4 the module has been re-written.
    The checks are basically the same, so let's see what happens
    in a few weeks...

     

Log in to post a comment.