[collectd] Network behavior between 3.11.7 and 5.7.1.19

Lindsay Holmwood lindsay at holmwood.id.au
Fri Feb 24 00:09:17 CET 2017


Hey Matt,
I did a bit more digging, and it looks like you're boned :-(

collectd's network plugin was essentially re-written for the 4.x series. If
you compare the v3 network plugin code:

https://github.com/collectd/collectd/blob/c75ed18827199e3d139c671256a9c61f0d8d4d8d/src/network.c

...to the v4 network plugin code:

https://github.com/collectd/collectd/blob/collectd-4.10/src/network.c

...you'll see that the implementations are very different.

I built 3.11.7 locally and captured some outbound traffic with Wireshark,
and Wireshark's collectd protocol decoder choked on the packets captured.
Looking at the payload, the packet format is completely different to what
4.x and up expect.

Looks like you'll need to get a build > 4.x running on your FreeBSD host.

Cheers,
Lindsay


On Thu, Feb 23, 2017 at 7:13 PM Lindsay Holmwood <lindsay at holmwood.id.au>
wrote:

> Hi Matt,
> Looking at the v3 => v4 and v4 => v5 migration guides, the only thing that
> mentions changes to the network plugin is the v4 => v5 path:
>
> https://collectd.org/wiki/index.php/V3_to_v4_migration_guide
> https://collectd.org/wiki/index.php/V4_to_v5_migration_guide
>
> However, that should only affect you if you've got v5 clients sending to a
> v4 server, so I don't think that's your problem.
>
> A couple of things come to mind:
>
>  - Have you tried decoding the packets you're receiving from your v3
> client in Wireshark? It may shed some light on whether the problem is with
> the packets or the server.
>  - What happens if you send packets from a v3 client to a v4 server?
>  - Are the errors you're seeing on the v5 server coming from the network
> plugin, or some other writer plugin (like rrdtool)? If the error is not
> coming from rrdtool, what happens when you try writing data with the csv
> plugin?
>
> Cheers,
> Lindsay
>
> On Thu, Feb 23, 2017 at 6:54 PM Matt Moor <m at imprecise.org> wrote:
>
> Hi,
>
> I'm trying to retrieve metrics from a very old host (FreeBSD 4.7; don't
> ask), where the latest version I've managed to compile is 3.11.7.
> Sending metrics to a server running 5.7.1.19 results in truncated packet
> errors in the logs (but no metrics). Is this the expected behavior?
> Asking here because it wasn't totally clear from my (limited) reading.
>
> Thanks,
>
> Matt
>
>
> _______________________________________________
> collectd mailing list
> collectd at verplant.org
> https://mailman.verplant.org/listinfo/collectd
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.verplant.org/pipermail/collectd/attachments/20170223/ac632410/attachment-0001.html>


More information about the collectd mailing list