pcp
[Top] [All Lists]

Re: [pcp] Experimental patch (was Re: mmv pmda: stuff always fails the f

To: kenj@xxxxxxxxxxxxxxxx
Subject: Re: [pcp] Experimental patch (was Re: mmv pmda: stuff always fails the first time?)
From: Nathan Scott <nscott@xxxxxxxxxx>
Date: Mon, 16 Nov 2009 12:46:38 +1100 (EST)
Cc: pcp@xxxxxxxxxxx
In-reply-to: <393806685.427341258335989316.JavaMail.root@xxxxxxxxxxxxxxxxxx>
----- "Ken McDonell" <kenj@xxxxxxxxxxxxxxxx> wrote:

> There is another more fundamental problem with the PMNS traversal in
> the proposed mmv changes.  I haven't found the fix for this one yet.

Attached version fixes it.  I didn't find a way to get dbpmda to call
the children() method with "traverse" set - is there a way?  Also the
dbpmda help for pmid, name, and children methods doesn't seem to give
useful info...

dbpmda> children mmv
Metric: mmv
   non-leaf test
       leaf reload
dbpmda> help children
                    ^ at or near here
Error: syntax error
Type 'help' for a list of commands.
dbpmda> help pmid
                ^ at or near here
Error: syntax error
Type 'help' for a list of commands.
dbpmda> help open

open dso dsoname init_routine [ domain# ]
open pipe execname [ arg ... ]

Open a PMDA as either a DSO or a daemon (connected with a pipe).  The
'dsoname' and 'execname' fields are the path to the PMDA shared object file
or executable.  The arguments to this command are similar to a line in the
pmcd.conf file.

dbpmda>


Looks like we're missing some cases in dbpmda util.c dohelp() routine?

cheers.

-- 
Nathan

Attachment: mmv.patch
Description: Text Data

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