pcp
[Top] [All Lists]

Re: [pcp] Apache agent issue

To: Nathan Scott <nathans@xxxxxxxxxx>
Subject: Re: [pcp] Apache agent issue
From: Chandana De Silva <chandana@xxxxxxxxxxxxx>
Date: Tue, 20 Mar 2012 09:22:29 +1100
Cc: pcp@xxxxxxxxxxx
In-reply-to: <1604061198.229201.1332194677730.JavaMail.root@xxxxxxxxxxxxxxxxxxxxxx>
References: <1604061198.229201.1332194677730.JavaMail.root@xxxxxxxxxxxxxxxxxxxxxx>
Reply-to: chandana@xxxxxxxxxxxxx
User-agent: Mozilla/5.0 (X11; Linux i686; rv:10.0.1) Gecko/20120216 Thunderbird/10.0.1
Hello Nathan,

Thanks for the quick reply.

I will use the sledgehammer for today, as I am working on a real issue. But will set up a test bed for both apache and mysql. I will try the mysql_auto_reconnect option and see.

Also, according to the MySQL PMDA, you can put config variables in /var/lib/pcp/pmdas/mysql/mysql.conf. I tried this, but it did not work.

Looking at the pmda, what does the ./mysql.conf translate to ?. Is it running inside /var/lib/pcp/pmdas/mysql ?

# 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',
        './mysql.conf' ) {    # current directory (high priority)
    eval `cat $file` unless ! -f $file;
}

Regards


On 03/20/2012 09:04 AM, Nathan Scott wrote:
As a workaround, its also possible to use pmie to notice when the agent exits
(pmcd.agent.status) and send sighup pmcd (pmstore into pmcd.control.sighup).
But, thats a sledgehammer - be good to understand and fix the above issues.

cheers.

--
Nathan

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