[kw-pm] Scanning Linux logfiles for dropouts

rprice at freeshell.org rprice at freeshell.org
Thu Jun 3 21:20:46 CDT 2004


Here goes :).

This is not overly tested, or tested in different environments, but it
does seem to work fine on Debian.

If someone makes improvements patches, I wouldn't mind getting them back.
Perhaps if it proves popular, I will put it on sourceforge...

Rick


On Thu, 3 Jun 2004, Daniel R. Allen wrote:

> Yes please... I'm curious.  Sounds like 'heartbeat' for logfiles...
>
> On Wed, 2 Jun 2004 rprice at freeshell.org wrote:
>
> > Hi,
> >
> > I just finished a perl program which will detect the dropout of a pattern
> > in a syslog type file.
> >
> >
> > Basically you specify the logfile, program, repeat period and pattern, and
> > if the pattern fails to show up on time, it syslogs the failure.
> >
> > I use logcheck on Debian, so I wouldn't want it to email me the info, but
> > if someone wanted to add that feature, it would hardly be difficult.
> >
> >
> > I just finished it tonight, so I should let it run for good couple of days
> > to make sure it's working before I inflict it on anyone else, but I'd be
> > happy to share it with anyone who wanted it.
> >
> >
> > My usage is to ensure that various BoxBackup clients that backup to my
> > machine, in fact do so within a reasonable time period.
> >
> > But it would be useful to check on any periodic thing that you would like
> > to watch. For instance, did my backup actually run each night?, if it
> > failed, you'd know about it, but what if it failed to run at all, you
> > wouldn't get a syslog entry for that...
> >
> > Have Fun
> > Rick
> >
> >
> > On Sat, 29 May 2004, Andrew Kohlsmith wrote:
> >
> > > > What I want is to be able to detect that one of the clients has not called
> > > > in during some relevant time period.
> > >
> > > > Any ideas?
> > >
> > > grep out the entries you want and use the date modules to calculate deltas
> > > between entries... sound an alarm if the delta is greater than some preset...
> > >
> > > -A.
> > > _______________________________________________
> > > kw-pm mailing list
> > > kw-pm at mail.pm.org
> > > http://mail.pm.org/mailman/listinfo/kw-pm
> > >
> > _______________________________________________
> > kw-pm mailing list
> > kw-pm at mail.pm.org
> > http://mail.pm.org/mailman/listinfo/kw-pm
> >
>
> _______________________________________________
> kw-pm mailing list
> kw-pm at mail.pm.org
> http://mail.pm.org/mailman/listinfo/kw-pm
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: dropout_tracker.tgz
Type: application/x-gtar
Size: 3106 bytes
Desc: 
Url : http://mail.pm.org/pipermail/kw-pm/attachments/20040603/b5b1cf37/dropout_tracker.gtar


More information about the kw-pm mailing list