pcp
[Top] [All Lists]

Re: [pcp] Apache agent issue

To: chandana@xxxxxxxxxxxxx
Subject: Re: [pcp] Apache agent issue
From: Nathan Scott <nathans@xxxxxxxxxx>
Date: Wed, 21 Mar 2012 20:30:36 +1100
Cc: pcp@xxxxxxxxxxx
In-reply-to: <4F67C044.3050002@xxxxxxxxxxxxx>
References: <572159052.230358.1332197360002.JavaMail.root@xxxxxxxxxxxxxxxxxxxxxx> <4F67C044.3050002@xxxxxxxxxxxxx>
Sender: ndsco1@xxxxxxxxxxxxxxxxxx


On 20 March 2012 10:24, Chandana De Silva <chandana@xxxxxxxxxxxxx> wrote:
On 03/20/2012 09:49 AM, Nathan Scott wrote:
# Configuration files for overriding the above settings
for my $file (    '/etc/pcpdbi.conf',    # system defaults (lowest priority)
        pmda_config('PCP_PMDAS_DIR') . '/mysql/mysql.conf',
Its this one you'd want - so /var/lib/pcp/pmdas/mysql/mysql.conf
What did you put in there that didn't work?  It can be any perl code,
and would typically be variable assignments (overriding one of the
3 set just beforehand - $database, $username or $password.  Oh, you
may also need the old perl trick of "1;" as the final line to indicate a
successful return status?
This is what I had:
$ cat /var/lib/pcp/pmdas/mysql/mysql.conf
my $username = 'uuuuuuu';
my $password = 'xxxxxxxxxxxx';

Try a "1;" as the final line?  Thats what my setup was using, with success.

cheers.

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