tags 732701 +fixed-upstream
thanks

Hi,

On Fri, Dec 20, 2013 at 05:19:40PM +0400, Alexander Golovko wrote:
> collectd crash, when curl plugin used.

Thanks for reporting this! I could reproduce the bug with your config
and push a fix upstream:
https://github.com/collectd/collectd/commit/8e9bdd5a63e67c6adb403c2aac4a25e0595ea147

I'll fix the Debian package in the next upload, either by pulling in
that patch or using a new upstream release.

> LoadPlugin curl
> <Plugin curl>
>       <Page test>
>               URL "http://example.com";
>               <Match>
>                       Regex "test: (\d+)"

You should use "\\d" instead of "\d". The config parser uses a backslash
to escape characters and, thus, requires a verbatim backslash to be
escaped.

>                       DSType "DeriveSet"
>                       Type "test"
>               </Match>
>       </Page>
> </Plugin>

Cheers,
Sebastian

-- 
Sebastian "tokkee" Harl +++ GnuPG-ID: 0x8501C7FC +++ http://tokkee.org/

Those who would give up Essential Liberty to purchase a little Temporary
Safety, deserve neither Liberty nor Safety.         -- Benjamin Franklin

Attachment: signature.asc
Description: Digital signature

Reply via email to