pcp
[Top] [All Lists]

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

To: David Smith <dsmith@xxxxxxxxxx>
Subject: Re: [pcp] [addendum] Possible problem with event record mechanisms
From: Ken McDonell <kenj@xxxxxxxxxxxxxxxx>
Date: Tue, 22 Mar 2011 08:43:57 +1100
Cc: pcp@xxxxxxxxxxx
In-reply-to: <4D877E43.2020403@xxxxxxxxxx>
References: <1065670774.114691299755917880.JavaMail.root@xxxxxxxxxxxxxxxxxxxxxx> <1299787346.28719.22.camel@bozo-laptop> <1300219622.9332.5.camel@xxxxxxxxxxxxxxxx> <4D877E43.2020403@xxxxxxxxxx>
Reply-to: kenj@xxxxxxxxxxxxxxxx
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.
        
--- ignore these comments ... ---

Sounds very odd.  Did you use Makepkgs to build your own images?  And
then,
        $ make
        $ cd src/pmevent
        $ sudo make install
to get pmevent really installed (it may not be plumbed into the image
build, depending on the state of the pcp4 branch)

I cannot explain the PM_ERR_PMID for pmval or pmevent.

Below is my output.  Please send me the same for your system, plus the
output from

        $ pmevent -Dall -s1 sample.event.records

kenj@bozo:~$ pminfo -dmf sample.event.records
sample.event.records PMID: 29.0.136
    Data Type: event record array  InDom: 29.10 0x740000a
    Semantics: instant  Units: none
    inst [0 or "fungus"] value [0 event records]
    inst [1 or "bogus"] value [2 event records timestamps 
08:32:09.343...08:32:09.343]

kenj@bozo:~$ pmval sample.event.records

pmval: Cannot display values for PM_TYPE_EVENT metrics

kenj@bozo:~$ pmevent -s 2 sample.event.records
host:      localhost
samples:   2
interval:  1.00 sec
sample.event.records[fungus]: 1 event records
  08:32:18.929 --- event record [0] flags 0x1 (point) ---
sample.event.records[bogus]: 1 event records
  08:32:28.929 --- event record [0] flags 0x1 (point) ---
    sample.event.param_string "fetch #1"
sample.event.records[fungus]: 2 event records
  08:32:19.930 --- event record [0] flags 0x1 (point) ---
    sample.event.type 1
  08:32:20.930 --- event record [1] flags 0x1 (point) ---
    sample.event.type 2
    sample.event.param_64 -3
sample.event.records[bogus]: 1 event records
  08:32:29.930 --- event record [0] flags 0x1 (point) ---
    sample.event.param_string "fetch #2"


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