pcp
[Top] [All Lists]

memcache pmda

To: pcp@xxxxxxxxxxx
Subject: memcache pmda
From: Chandana De Silva <chandana@xxxxxxxxxxxxx>
Date: Wed, 09 Jul 2014 16:36:49 +1000
Delivered-to: pcp@xxxxxxxxxxx
Reply-to: chandana@xxxxxxxxxxxxx
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.6.0
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.

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

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

However, on CentOS 6.5/PCP 3.9.4, I am able to view the memcache stats as myself, and as user pcp

If someone can give me a few hints on debugging, I would appreciate it. I tried turning logging on in the pmda, but not much help.

Thanks,
Chandana



sudo -u pcp memcached-tool 127.0.0.1 stats
#127.0.0.1:11211   Field       Value
         accepting_conns           1
               auth_cmds           0
             auth_errors           0
                   bytes           0
              bytes_read          35
           bytes_written        3091
...


PMDA Install on CentOS 6.5/PCP 3.9.4
=====================================

$ sudo ./Install
You will need to choose an appropriate configuration for installation of
the "memcache" Performance Metrics Domain Agent (PMDA).

  collector     collect performance statistics on this system
  monitor       allow this system to monitor local and/or remote systems
  both          collector and monitor configuration for this system

Please enter c(ollector) or m(onitor) or b(oth) [b]
Updating the Performance Metrics Name Space (PMNS) ...
Terminate PMDA if already installed ...
Updating the PMCD control file, and notifying PMCD ...
Check memcache metrics have appeared ... 17 warnings, 17 metrics and 0 values

$ cat /var/log/pcp/pmcd/memcache.log
Log for pmdamemcache on memc1.dev.mel.mmd started Wed Jul  9 16:03:10 2014

pmcd RESTARTED at Wed Jul  9 16:03:10 2014


Current PMCD clients ...
     fd  client connection from                    ipc ver  operations denied
     ==  ========================================  =======  =================
    1027  memc1.dev.mel.mmd                               2


active agent dom   pid  in out ver protocol parameters
============ === ===== === === === ======== ==========
pmcd           2                 2 dso i:5  
lib=/var/lib/pcp/pmdas/pmcd/pmda_pmcd.so entry=pmcd_init [(nil)]
linux         60                 2 dso i:4  
lib=/var/lib/pcp/pmdas/linux/pmda_linux.so entry=linux_init [(nil)]
proc           3 18107  13  14   2 bin pipe 
cmd=/var/lib/pcp/pmdas/proc/pmdaproc -d 3
mmv           70                 2 dso i:4  
lib=/var/lib/pcp/pmdas/mmv/pmda_mmv.so entry=mmv_init [(nil)]
xfs           11 18109  15  16   2 bin pipe cmd=/var/lib/pcp/pmdas/xfs/pmdaxfs 
-d 11
jbd2         122                 2 dso i:4  
lib=/var/lib/pcp/pmdas/jbd2/pmda_jbd2.so entry=jbd2_init [(nil)]
memcache      89 22572  45  47   2 bin pipe cmd=perl 
/var/lib/pcp/pmdas/memcache/pmdamemcache.pl

Host access list:
00 01 Cur/MaxCons host-spec                               host-mask             
                  lvl host-name
== == =========== ======================================= 
======================================= === ==============
 y  y     0     0 10.16.0.124                             255.255.255.255       
                    0 localhost
 y  y     0     0 /                                       /                     
                    1 unix:
    n     0     0 0.0.0.0                                 0.0.0.0               
                    4 .*
    n     0     0 ::                                      ::                    
                    8 :*
User access list empty: user-based access control turned off
Group access list empty: group-based access control turned off

[Wed Jul  9 16:03:10] pmcd(18093) Info: PMNS file "DEFAULT" is unchanged

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