pcp
[Top] [All Lists]

Re: pmwebd oddity?

To: "Frank Ch. Eigler" <fche@xxxxxxxxxx>
Subject: Re: pmwebd oddity?
From: Michele Baldessari <michele@xxxxxxxxxx>
Date: Mon, 13 Oct 2014 22:12:43 +0200
Cc: pcp@xxxxxxxxxxx
Delivered-to: pcp@xxxxxxxxxxx
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/simple; d=acksyn.org; h= user-agent:in-reply-to:content-disposition:content-type :content-type:mime-version:references:message-id:subject:subject :from:from:date:date:received:received; s=2010; t=1413231164; bh=hCQFRFDcxbZDQOi6ylCqvteOaYoYm5LLe5IIOyDMV1o=; b=XtIg7c6n6ihr Df04jYNzuruEZFYfQZpvO5kULSTHiI64Lp7Bdha0EkYTkFajl5vFWyj+hRpM0adv pRLHGnve1GqjHdRSNM46kGWFbicU76Q3KFg1nLcA7ZGAf+l77WekUD/o/ihlbBqU RM82IfzfuRZXMX0TtunW97i+Ds24v9I=
In-reply-to: <y0megub6bex.fsf@xxxxxxxx>
References: <20141013184310.GE19405@xxxxxxxxxxxxxxx> <y0megub6bex.fsf@xxxxxxxx>
User-agent: Mutt/1.5.21 (2012-12-30)
Hi Frank,

On Mon, Oct 13, 2014 at 03:02:14PM -0400, Frank Ch. Eigler wrote:
> > - pmwebd returns empty values :
> 
> > GET /pmapi/747499891/_fetch?pmids=79691786 HTTP/1.1
> > [...]
> > { "timestamp": { "s":1413224370, "us":801625 },
> > "values": [
> > ] }
> 
> How was that context 747499891 created?  /pmapi/context?local=ANYTHING
> is not the same thing; use /pmapi/context?hostname=local: instead.
> Perhaps pmwebd should default to -h local: (and support an unparametrized
> /pmapi/context?) the same way pm* clients do.  Opinions? 

Ah there you go. I am attaching a patch to the man page, to make it slightly
more obvious and to cleanse away my API sins. I failed to notice the
difference between the two ;)

Personally, I think -h local: is a bit more obvious and expected, but as
long as it's somehwat clearer in the pmwebapi man page, I'm fine with
the status quo.

Thanks again,
Michele
-- 
Michele Baldessari            <michele@xxxxxxxxxx>
C2A5 9DA3 9961 4FFB E01B  D0BC DDD4 DCCB 7515 5C6D

Attachment: 0001-Clarify-the-limits-of-PM_CONTEXT_LOCAL-when-using-pm.patch
Description: Text document

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