pcp
[Top] [All Lists]

Re: Local context vs dynamic namespace

To: Nathan Scott <nathans@xxxxxxxxxx>
Subject: Re: Local context vs dynamic namespace
From: Ken McDonell <kenj@xxxxxxxxxxxxxxxx>
Date: Thu, 15 Apr 2010 08:44:07 +1000
Cc: pcp <pcp@xxxxxxxxxxx>
In-reply-to: <1419860990.620491271201038915.JavaMail.root@xxxxxxxxxxxxxxxxxx>
References: <1419860990.620491271201038915.JavaMail.root@xxxxxxxxxxxxxxxxxx>
Reply-to: kenj@xxxxxxxxxxxxxxxx
On Wed, 2010-04-14 at 09:23 +1000, Nathan Scott wrote:
> ...
> This all means you have to parse pmcd.conf in libpcp, which is a bit
> more involved perhaps than walking a directory and using the existing
> (-K) parser code ... but, you choose, I'd be happy with either way.

The parsing is pretty simple ... I opted to not do a heap of error
checking because (a) pmcd is already doing that at the time pmcd.conf is
updated and reread, and (b) the parsing happens during the first call to
pmNewContext(PM_CONTEXT_LOCAL, NULL) or pmLocalPMDA(...) or
pmSpecLocalPMDA() and this is a bad place to be trying to return
"helpful" parser error messages.

I can revisit this if someone sees a problem with the approach I've
taken.

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