[collectd] [PATCH] postgresql: Added a plugin to collect PostgreSQL database statistics.

a.shubnik at btis.by a.shubnik at btis.by
Mon Jul 7 11:32:08 CEST 2008


>> As i understand your patch intended for 4.4.1 version but i
>> can't compile this version of collectd by compilation errors
>> (see collectd bugtraq). On my current working 4.3.3 version i
>> can't install your patch.
>
> It's quite likely that the patch won't apply against 4.3 without some
> conflicts. Those should be easy to resolve though... I'll have a quick
> look at that later.

   On 4.4.1 i also have one problem (see attached configure.in.rej):

patching file configure.in
Hunk #1 succeeded at 2071 (offset -42 lines).
Hunk #2 succeeded at 2584 with fuzz 1 (offset -47 lines).
Hunk #3 FAILED at 2696.
Hunk #4 FAILED at 2751.
2 out of 4 hunks FAILED -- saving rejects to file configure.in.rej

   i added next lines by hands:

      libpq . . . . . . . . $with_libpq

      postgresql  . . . . . $enable_postgresql

> About that build problem: Maybe you can work around it for now by using:
>
>   ./configure --disable-libstatgrab
>
> On Linux, you usually don't need libstatgrab, so that should not
> introduce any disadvantages. Of course, in the long run, that problem
> should be resolved anyway.

    Yes, with --disable-libstatgrab i compile 4.4.1 successfully but i don't
sure that libstatgrab not need for me.
    But in result (after configure) i don't see any info about libpq or  
postgresql
in result Libraries and Modules lists (and in 'configure --help' also).
    It's strange.

>>   After i can compile last version collectd i will test
>> postgresql plugin.
>
> If you want to get a tarball which includes the "postgresql" plugin, you
> can grab a snapshot from [1]. The plugin has been added to Florian's Git
> repository at July, 5, so the 2008-07-06 snapshot should include it.

    I take last snapshot from your link below and with it i see all  
configuration
info about postgresql BUT have compilation error with mysql plugin (see  
attached make.log).


> PS: In the future, please keep things on the collectd mailinglist. It
> might be interesting for other people as well... If you don't mind, I
> will bounce your E-mail and my response to the list.

    Of course, no problem.

> [1] http://snapshots.tokkee.org/collectd/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: configure.in.rej
Type: application/octet-stream
Size: 1259 bytes
Desc: not available
Url : http://mailman.verplant.org/pipermail/collectd/attachments/20080707/9d24986b/attachment-0002.obj 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: make.log
Type: application/octet-stream
Size: 3615 bytes
Desc: not available
Url : http://mailman.verplant.org/pipermail/collectd/attachments/20080707/9d24986b/attachment-0003.obj 


More information about the collectd mailing list