[collectd] Collectd opens UDP port

Enrico Tröger enrico.troeger at uvena.de
Thu Oct 7 19:58:41 CEST 2010


On Sun, 3 Oct 2010 06:41:14 +1000, Amos wrote:

>That's the way UDP works.

Thanks so far.
But could you be so kind to explain it a little further?
I'm not that familiar with UDP and don't see why the clients need to
open a listening UDP port to send data to the server.

Thanks,
Enrico

>On 02/10/2010 11:09 PM, "Enrico Tröger" <enrico.troeger at uvena.de>
>wrote:
>
>Hi Guys,
>
>collectd is great! Thanks for this software!
>
>I'm using collectd on various servers to collect
>all the data and send it via the "network" plugin
>to a central instance where the data is stored.
>
>The central instance obviously opens an UDP port to
>receive the collected data from the "clients".
>But for some reason, even the clients open an UDP
>port. It seems the port number is chosen randomly
>as it changes on every restart:
>
>[13:03:25] root at hefi (0): ~# netstat -tuplen | grep collectd
>udp 0 0 0.0.0.0:33549 0.0.0.0:* 0 762935590   32399/collectd
>[13:03:36] root at hefi (0): ~# /etc/init.d/collectd restart
>Restarting statistics collection and monitoring daemon: collectd.
>[13:03:41] root at hefi (0): ~# netstat -tuplen | grep collectd
>udp 0 0 0.0.0.0:52165 0.0.0.0:* 0 762945183   3310/collectd
>
>I'm wondering if this intended and/or others
>can confirm this behaviour.
>
>For testing, I disabled the "network" plugin
>and then collectd won't open the port. So,
>it seems strictly related to the "network"
>plugin.
>
>Here is my config of one of the clients:
>
><Plugin network>
>       <Server "<ip-des-masters>" "<port>">
>               SecurityLevel "Encrypt"
>               Username "collectd"
>               Password "<passwort>"
>       </Server>
></Plugin>
>
>
>collectd version: 4.10.1-1+squeeze1~bpo50+1 (Debian Stable / Backports)
>
>
>Any ideas?
>
>
>Regards,
>Enrico
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: not available
URL: <http://mailman.verplant.org/pipermail/collectd/attachments/20101007/d4b595a9/attachment.pgp>


More information about the collectd mailing list