pcp
[Top] [All Lists]

Re: [pcp] Unable to install MySQL PMDA on Ubuntu

To: Marty Customs <marty.customs@xxxxxxxxx>
Subject: Re: [pcp] Unable to install MySQL PMDA on Ubuntu
From: Nathan Scott <nathans@xxxxxxxxxx>
Date: Tue, 3 Jun 2014 21:45:57 -0400 (EDT)
Cc: pcp@xxxxxxxxxxx
Delivered-to: pcp@xxxxxxxxxxx
In-reply-to: <CA+6qtBsQBaKO6U-wzcrsWMBaGPT6TognWcapd70ednqTaRYwpg@xxxxxxxxxxxxxx>
References: <CA+6qtBsQBaKO6U-wzcrsWMBaGPT6TognWcapd70ednqTaRYwpg@xxxxxxxxxxxxxx>
Reply-to: Nathan Scott <nathans@xxxxxxxxxx>
Thread-index: LcF/30Sun/tWIrpS+OIADDWUrOTPXg==
Thread-topic: Unable to install MySQL PMDA on Ubuntu
Hi Marty,

----- Original Message -----
> [...]
> Then from /var/lib/pcp/pmdas/mysql/ I attempt to install the agent but get a
> message instead:
> $ sudo ./Install
> Perl PCP::PMDA module is not installed, install it and try again
> 

This message is coming from checks in /usr/share/pcp/lib/pmdaproc.sh which
is attempting to verify the pcp/perl setup - in particular, it runs a hunk
of shell code alot like this:

perl -e 'use PCP::PMDA' 2>/dev/null
if test $? -ne 0
then
    echo 'Perl PCP::PMDA module is not installed, install it and try again'
    exit 1
fi

So what does "sudo perl -e 'use PCP::PMDA'" print out?  (and whats the exit
code, cos thats ultimately preventing the Install from proceeding).

> I try installing the missing module but it's already installed:
> $ sudo apt-get install libpcp-pmda-perl
> libpcp-pmda-perl is already the newest version.

That's ... wierd.  Have never come across this issue myself, testing a stock
Debian install.  But, the answer might come from the perl diagnostics above,
hopefully - let us know what you find.

cheers.

--
Nathan

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