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"
|