pcp
[Top] [All Lists]

Re: [pcp] Problems with Perl version of simple PMDA

To: Nathan Scott <nathans@xxxxxxxxxx>
Subject: Re: [pcp] Problems with Perl version of simple PMDA
From: Ken McDonell <kenj@xxxxxxxxxxxxxxxx>
Date: Mon, 25 Mar 2013 10:26:58 +1100
Cc: PCP Mailing List <pcp@xxxxxxxxxxx>
Delivered-to: pcp@xxxxxxxxxxx
In-reply-to: <560391051.24017684.1364160634830.JavaMail.root@xxxxxxxxxx>
References: <560391051.24017684.1364160634830.JavaMail.root@xxxxxxxxxx>
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130308 Thunderbird/17.0.4
On 25/03/13 08:30, Nathan Scott wrote:
> 
> 
> ----- Original Message -----
>> I am seeing this failure from QA 255 on Mac OS X (but no where else)
>> ... help from a Perl-knowledgeable person would be appreciated.
>>
> 
> This is because the pmdasimple.pl in the tree is using the (relatively
> new) hash-based indom accessors (which are pmdaCache backed).  I would
> punt the version of the perl PCP::PMDA module installed is out of date
> somehow - older versions did not have this.  Its also possible you've
> got multiple versions of that module installed, and the perl module path
> is finding the older version first perhaps.
> 
> "perl -V" lists the @INC variable, which shows that search path.

Good guess Nathan.

But this leads to an uglier problem ... PCP::PMDA is not being installed from 
the most recent Mac OS X packages ...


comma:~ kenj$ find /Library/Perl /System/Library/Perl /Network/Library/Perl 
-name "PMDA.bundle" | xargs ls -l
-rwxr-xr-x  1 root  wheel  224040 Jun 26  2012 
/Network/Library/Perl/5.10.0/darwin-thread-multi-2level/auto/PCP/PMDA/PMDA.bundle
comma:~ kenj$ ls -l /etc/pcp.conf
-rw-r--r--  1 root  wheel  5396 Mar 13 11:31 /etc/pcp.conf

comma:~ kenj$ pcp
Performance Co-Pilot configuration on comma.localdomain:

 platform: Darwin comma.localdomain 10.8.0 Darwin Kernel Version 10.8.0: Tue 
Jun 7 16:33:36 PDT 2011; root:xnu-1504.15.3~1/RELEASE_I386 i386
 hardware: 2 cpus, 2 disks, 2047MB RAM
 timezone: EST-11
     pmcd: Version 3.7.1-1, 10 agents, 1 client
     pmda: pmcd trace sendmail sample sampledso mmv darwin logger trivial
           simple
 pmlogger: primary logger: comma/20130323.11.34

But after some digging, I see all the Perl bits are being installed here

comma:mac kenj$ ls -l /usr/lib/perl5/darwin-thread-multi-2level/PCP 
total 48
-rw-r--r--  1 root  wheel  4526 Mar 13 11:31 LogImport.pm
-rw-r--r--  1 root  wheel  3604 Mar 13 11:31 MMV.pm
-rw-r--r--  1 root  wheel  7332 Mar 13 11:31 PMDA.pm
-rwxr-xr-x  1 root  wheel  2883 Mar 13 11:31 server.pl

which does not look right.

Based on the dates, this has probably been broken for a few months.

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