pcp
[Top] [All Lists]

Re: [pcp] [addendum] Possible problem with event record mechanisms

To: kenj@xxxxxxxxxxxxxxxx
Subject: Re: [pcp] [addendum] Possible problem with event record mechanisms
From: David Smith <dsmith@xxxxxxxxxx>
Date: Tue, 22 Mar 2011 10:38:23 -0500
Cc: pcp@xxxxxxxxxxx
In-reply-to: <1300743837.12077.15.camel@xxxxxxxxxxxxxxxx>
References: <1065670774.114691299755917880.JavaMail.root@xxxxxxxxxxxxxxxxxxxxxx> <1299787346.28719.22.camel@bozo-laptop> <1300219622.9332.5.camel@xxxxxxxxxxxxxxxx> <4D877E43.2020403@xxxxxxxxxx> <1300743837.12077.15.camel@xxxxxxxxxxxxxxxx>
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
On 03/21/2011 04:43 PM, Ken McDonell wrote:
> On Mon, 2011-03-21 at 11:35 -0500, David Smith wrote:
>> On 03/15/2011 03:07 PM, Ken McDonell wrote:
>>> On Fri, 2011-03-11 at 07:02 +1100, Ken McDonell wrote:
>>>> OK there seems to be consensus ... I'll make the changes to support
>>>> instance domains for event records.
>>>
>>> This is now done in the latest round of commits to my pcp4 branch.
>>
>> Hmm, when I use the pcp4 branch, I'm getting some odd results.  pminfo
>> reports that sample.event.records exists, but both pmval and pmevent
>> report a PM_ERR_PMID (Unknown or illegal metric identifier) when I try
>> to read its value.
>>
>> Got any ideas on where I should look for the problem?
> 
> Just had another thought after I wrote the text at the end of this
> mail ...
> 
>         the PMID for sample.event.records has changed recently
>         
>         pminfo sample.event.records
>         will simply report the existence of the metric in the namespace
>         (PMNS)
>         
>         pmval and pmevent will both need to look up the PMID from the
>         name and then get the descriptor (pmDesc) ... this will be a
>         problem if the PMID in the PMNS does not match the PMID in the
>         PMDA for the metric.
>         
>         to fix this, ...
>         
>               $ cd /var/lib/pcp/pmdas/sample
>               $ sudo ./Install </dev/null
>         
>         this will reinstall the PMDA and populate the PMNS with the
>         correct name to PMID mapping.
>         
>         sorry about this.

Yep, that was it.  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>