pcp
[Top] [All Lists]

logger PMDA review

To: pcp <pcp@xxxxxxxxxxx>
Subject: logger PMDA review
From: David Smith <dsmith@xxxxxxxxxx>
Date: Wed, 13 Apr 2011 14:52:28 -0500
Cc: Systemtap List <systemtap@xxxxxxxxxxxxxxxxxx>
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.15) Gecko/20110307 Fedora/3.1.9-0.39.b3pre.fc14 Lightning/1.0b3pre Thunderbird/3.1.9
After mucking around a bit, I've got a working version of my PCP logger
PMDA.  You can see the result by looking at:

<http://sources.redhat.com/git/gitweb.cgi?p=systemtap.git;a=tree;f=pcp/src/pmdas/logger;h=b69c63b346157a2a6f857ac80cbf1eda5f7be824;hb=HEAD>

Or you can do a git pull (and look at pcp/src/pmdas/logger in the
resulting tree):
# git clone git://sources.redhat.com/git/systemtap.git

When installed, the PMDA creates a config file containing a NAME and
PATH for logfiles to monitor.  If PATH ends in '|', the filename is
interpreted as a command that pipes output to the PMDA.

Each logfile's data appears under logger.perfile.NAME.  Each event
stream can have multiple clients attached to it.

I'd appreciate any comments on the code.  Thanks for the help.

-- 
David Smith
dsmith@xxxxxxxxxx
Red Hat
http://www.redhat.com
256.217.0141 (direct)
256.837.0057 (fax)

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