pcp
[Top] [All Lists]

Re: [pcp] Detecting of a host is being logged by pmlogger

To: Nathan Scott <nathans@xxxxxxxxxx>
Subject: Re: [pcp] Detecting of a host is being logged by pmlogger
From: Chandana De Silva <chandana@xxxxxxxxxxxxx>
Date: Thu, 20 Feb 2014 04:53:05 +1100
Cc: pcp@xxxxxxxxxxx
Delivered-to: pcp@xxxxxxxxxxx
In-reply-to: <1466910430.10900672.1392806066557.JavaMail.zimbra@xxxxxxxxxx>
References: <530437C7.4040900@xxxxxxxxxxxxx> <255091837.10539721.1392785738351.JavaMail.zimbra@xxxxxxxxxx> <53046AFB.7080007@xxxxxxxxxxxxx> <1466910430.10900672.1392806066557.JavaMail.zimbra@xxxxxxxxxx>
Reply-to: chandana@xxxxxxxxxxxxx
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.2.0
No luck

$ cat /etc/pcp/pmcd/pmcd.conf
# Performance Metrics Domain Specifications
#
# This file is automatically generated during the build
# Name  Id      IPC     IPC Params      File/Cmd
pmcd    2    dso    pmcd_init /var/lib/pcp/pmdas/pmcd/pmda_pmcd.so
linux    60    dso    linux_init /var/lib/pcp/pmdas/linux/pmda_linux.so
proc    3    pipe    binary /var/lib/pcp/pmdas/proc/pmdaproc -d 3
mmv    70    dso    mmv_init /var/lib/pcp/pmdas/mmv/pmda_mmv.so
xfs    11    pipe    binary /var/lib/pcp/pmdas/xfs/pmdaxfs -d 11
jbd2    122    dso    jbd2_init /var/lib/pcp/pmdas/jbd2/pmda_jbd2.so
apache    68    pipe    binary /var/lib/pcp/pmdas/apache/pmdaapache -d 68
[access]
disallow ".*" : store;
disallow ":*" : store;
allow "local:*" : all;
allow "192.168.*" : store;

$ pminfo -ft pmcd.client.whoami

pmcd.client.whoami [optional identification information for clients of pmcd]
inst [0 or "0"] value "hr1.m4u.com.au (192.168.7.155) pmie -b -h local: -l /var/log/pcp/pmie/hr1.m4u.com.au/healthstate.log -c healthstate.pmie" inst [3 or "3"] value "hr1.m4u.com.au (192.168.7.155) pmie -b -h local: -l /var/log/pcp/pmie/hr1.m4u.com.au/config.linux.log -c config.linux" inst [12 or "12"] value "hr1.m4u.com.au (192.168.7.155) pmie -b -h local: -l /var/log/pcp/pmie/hr1.m4u.com.au/pmie.log -c config.default"
    inst [13 or "13"] value ""
    inst [16 or "16"] value ""


cat /var/log/pcp/pmcd/pmcd.log
Log for pmcd on hr1.m4u.com.au started Thu Feb 20 04:45:32 2014


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 [0x7fef0cdc9980] linux 60 2 dso i:4 lib=/var/lib/pcp/pmdas/linux/pmda_linux.so entry=linux_init [0x7fef0c99aaa0] proc 3 13647 10 11 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 [0x7fef0c78c870] xfs 11 13650 12 13 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 [0x7fef0c589650] apache 68 13653 16 17 2 bin pipe cmd=/var/lib/pcp/pmdas/apache/pmdaapache -d 68

Host access list:
00 01 Cur/MaxCons host-spec host-mask lvl host-name == == =========== ======================================= ======================================= === ============== y y 0 0 192.168.7.155 255.255.255.255 0 localhost
 y  y     0     0 / /                                         1 unix:
y 0 0 192.168.0.0 255.255.0.0 2 192.168.*
    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


pmcd: PID = 13636, PDU version = 2
pmcd request port(s):
  sts fd   port  family address
  === ==== ===== ====== =======
  ok  1026       unix   /var/run/pcp/pmcd.socket
  ok  1024 44321 inet   INADDR_ANY
  ok  1025 44321 ipv6   INADDR_ANY


Chandana


On 19/02/14 21:34, Nathan Scott wrote:

----- Original Message -----
Nathan

Thanks.  I tried it, but it does not seem to have full information on
remote clients, I am assuming either inst 48 or 50 is what I am looking for.

Not sure - this mechanism uses pmStore(3), maybe that pmcd is only
allowing local host stores (check pmcd.conf [access] section).

cheers.

--
Nathan

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