pcp
[Top] [All Lists]

Re: One pmwebapi against multiple pcp running hosts

To: "Frank Ch. Eigler" <fche@xxxxxxxxxx>
Subject: Re: One pmwebapi against multiple pcp running hosts
From: Dev Priya <devpriya00@xxxxxxxxx>
Date: Tue, 2 Apr 2013 14:08:02 -0700
Cc: pcp@xxxxxxxxxxx
Delivered-to: pcp@xxxxxxxxxxx
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:in-reply-to:references:date:message-id :subject:from:to:cc:content-type; bh=z3BRQAXYR1ndut8ZXHWpS25F+t5jxv8PA3pznuuZtes=; b=cM4H3m26ESBdSXD9/QKyeuDDxF/xwcqS47yxnASJdc73bddTAUC22WDjeYIBIKpiDA HGrdXMZo5JcheM8jAlT8byfaOQGq6M0+c4xVv3Vukvv5tzxiKYzSF8mizSXBsKLlYbLx zRenFeuokcs+92kjPpCBTB6XVxluOIW3fOlwo597FCqijbLjOrpC/8HQGQV337KQYP5U xujruiFi7Cbp6CCEOYvptPoR5gsVq7DTPnsSoR4ChwVqBcx/SXyBzrUHN6T4P0YL4mHV G2CTqRz3h0aBzHmZXh15Ah0eUgTVv7wgjhfwDcC3hsi2lIIwbA+ADLkXdEcTt0PPyt3y JkhA==
In-reply-to: <20130402205337.GD3659@xxxxxxxxxx>
References: <CADPXOeknVWyG8ZWgEcnVnxtHoYr3tq+g5EVof4AdAhxGZH4eiA@xxxxxxxxxxxxxx> <20130402205337.GD3659@xxxxxxxxxx>
I am doing it exactly the way you told below - context creation followed by querying for each host under their own context. I ran pmwebapi in verbose mode and noticed that when I create a context for the host on which pmwebapi is running I get a context creation message but for other hosts I am getting context creation failed and on the receiver side I get an empty message.

I verified it by manually CURLing the url too. Even in verbose mode the output is too less to find out why the context creation might have failed. Is there a way to increase the verbosity of the logs even further?

Thanks,
Dev

On Tue, Apr 2, 2013 at 1:53 PM, Frank Ch. Eigler <fche@xxxxxxxxxx> wrote:
Hi -

> I have pmwebapi installed on one machine and I have pcp running on multiple
> machines. If I understand correctly one instance of pmwebapi should be able
> to gather metrics from multiple hosts and not only the host it is running
> on, am I right? I am asking this because I am not seeing this behavior. So
> I wanted to confirm with you if this is the desired behavior before I start
> debugging.

It should work.  Each pmwebapi context# maps to a separate PMAPI-level
context, each of which can connect to different
hosts/archives/whatever.  Make sure you use

/pmapi/context?hostname=HOST1 => /pmapi/context#1/
/pmapi/context?hostname=HOST2 => /pmapi/context#2/

consistently thereafter.

- FChE

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