pcp
[Top] [All Lists]

Re: [pcp] PCP 3.6.9 and the mysql pmda

To: chandana@xxxxxxxxxxxxx
Subject: Re: [pcp] PCP 3.6.9 and the mysql pmda
From: Nathan Scott <nathans@xxxxxxxxxx>
Date: Thu, 1 Nov 2012 05:33:11 -0400 (EDT)
Cc: pcp@xxxxxxxxxxx
In-reply-to: <50923EF4.80804@xxxxxxxxxxxxx>
Reply-to: Nathan Scott <nathans@xxxxxxxxxx>

----- Original Message -----
> I have started installing PCP 3.6.9 on a set of CentOS 5.5 x86_64
> servers. One issue I have found is that PCP does not get listed in
> chkconfig. Is this intentional (systemd related ?). If so how can we
> get that back into the older versions of RHEL/CentOS ?
> 

This might be that the old "pcp" script has been divided into two:

$ sudo /sbin/chkconfig --list  | grep pcp
$ sudo /sbin/chkconfig --list  | grep pmcd
pmcd            0:off   1:off   2:on    3:on    4:on    5:on    6:off
$ sudo /sbin/chkconfig --list  | grep pmlogger
pmlogger        0:off   1:off   2:on    3:on    4:on    5:on    6:off

Or it might be something else entirely.

> The second issue is that I seem to have made an error in the mysql
> pmda.
> PCP now thinks this is a Gigabyte value.
> pminfo -d -t mysql.slave_status.seconds_behind_master
> 
> mysql.slave_status.seconds_behind_master []
>      Data Type: 32-bit unsigned int  InDom: PM_INDOM_NULL 0xffffffff
>      Semantics: instant  Units: Gbyte
> 
> This came from:
> 
> $pmda->add_metric(pmda_pmid(3,3), PM_TYPE_U32, PM_INDOM_NULL,
>                    PM_SEM_INSTANT, pmda_units(1,0,0,PM_TIME_SEC,0,0),
>                    'mysql.slave_status.seconds_behind_master', '',
>                    '');
> 
> I think the above should be:
> 
> $pmda->add_metric(pmda_pmid(3,3), PM_TYPE_U32, PM_INDOM_NULL,
>                    PM_SEM_INSTANT, pmda_units(0, 1, 0, 0,
>                    PM_TIME_SEC, 0),
>                    'mysql.slave_status.seconds_behind_master', '',
>                    '');
> 

*nod*

> Is this clearly explained somewhere ?. I am not sure if I am reading
> the
> correct document at
> http://techpubs.sgi.com/library/tpl/cgi-bin/getdoc.cgi?coll=0650&db=bks&srch=&fname=/SGI_Developer/PCP_PG/sgi_html/ch02.html#id5189820
> 

Yep, thats a good source.  Usually I just see what another pmda
(linux) does in the same situation, when I have to remind myself
on the order of those fields.

cheers.

--
Nathan

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