pcp
[Top] [All Lists]

Re: general log monitor

To: Jan-Frode Myklebust <mykleb@xxxxxxxxxx>
Subject: Re: general log monitor
From: Mark Goodwin <markgw@xxxxxxx>
Date: Sat, 3 Dec 2005 06:45:40 +1100 (EST)
Cc: pcp@xxxxxxxxxxx
In-reply-to: <slrndp0ge7.kni.mykleb@99RXZYP.ibm.com>
References: <slrndp0ge7.kni.mykleb@99RXZYP.ibm.com>
Sender: pcp-bounce@xxxxxxxxxxx
On Fri, 2 Dec 2005, Jan-Frode Myklebust wrote:

> I'm looking at implementing PCP at a new site, and am looking for some
> way of monitoring general logfiles for activity.  Has anybody made a more
> general purpose/modifiable log monitor ? One counting lines matching a
> specified word maybe ?

You can probably use the 'logtail' PMDA for this. Basically you
configure it with a series of regex and log files to monitor,
and it exports a counter of matching entries in the log.

Look in /var/lib/pcp/pmdas/logtail

Cheers
-- Mark

<Prev in Thread] Current Thread [Next in Thread>