pcp
[Top] [All Lists]

Re: [pcp] memcache pmda

To: chandana@xxxxxxxxxxxxx, Dave Brolley <brolley@xxxxxxxxxx>
Subject: Re: [pcp] memcache pmda
From: Nathan Scott <nathans@xxxxxxxxxx>
Date: Wed, 9 Jul 2014 03:23:43 -0400 (EDT)
Cc: pcp@xxxxxxxxxxx
Delivered-to: pcp@xxxxxxxxxxx
In-reply-to: <53BCE301.9050408@xxxxxxxxxxxxx>
References: <53BCE301.9050408@xxxxxxxxxxxxx>
Reply-to: Nathan Scott <nathans@xxxxxxxxxx>
Thread-index: ZFOazWfdEzP4ceOrNNqJMaQOmKd4dA==
Thread-topic: memcache pmda
Hi Chandana,

----- Original Message -----
> All,
> 
> I am trying to run the memcache pmda on 3.9.4 in CentOS 6.5.
> 
> The pmda does not correctly install, but neither does it log anything in
> the memcahe pmda log file.

The logging needs to be manually enabled by editing the perl script
(sorry, we haven't got round to cleaning up the argument parsing at
this stage for -D/--debug to perl/python PMDAs).

> I have this scuccfully woring on CentOS 5.5 against PCP 3.6.9.

[ How about that spell chucker, huh?  scuccfully woring indeed ;) ]

> The main difference I can see is that pcp runs as root on 3.6.9, and pcp
> on 3.9.4.

Pretty sure its not going to be related to root/non-root - the PMDA is
effectively just doing a telnet to an open (memcached) port and getting
values out using a text protocol - works fine as any user.

I think its most likely to be something odd going on in the networking
code in the perl PMDA library, which acquired IPv6, getaddrinfo, and a
few related changes in the interim.  Dave could you take a look?  (I'm
outta time for today, sorry).  When I run it, I see "values currently
unavailable" which is the PM_ERR_AGAIN in memcache_fetch_callback - so
no data has been read from the socket (possible FNDELAY related?  over
in local.c anyway, or how it interacts with the libpcp networking code
I guess?  - wild guesses, take with a pinch of salt!)

Dave - if you get to this, then "yum install memcached; service start
memcached", "telnet localhost 11211" and just "stats" should give you
values, like the PMDA expects to see.

thanks!

ps: this PMDA needs a QA test, if anyone is game... (comparing netcat
results to pmprobe, if a local memcache server can be found, would be
one possible approach there).

--
Nathan

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