[collectd] Collectd opens UDP port
Manuel CISSÉ
cisse.manuel at gmail.com
Thu Oct 7 22:37:49 CEST 2010
Hello,
Although UDP doesn't offer the same functionalities as TCP, regarding
port numbers they work similarly. The client needs to bind a local port
for the server to be able to send data in return (even if collectd
doesn't need this, it's not something you can disable).
--
Regards,
Manuel CISSE
On 10/07/2010 07:58 PM, Enrico Tröger wrote:
> 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
>>
>>
>> _______________________________________________
>> collectd mailing list
>> collectd at verplant.org
>> http://mailman.verplant.org/listinfo/collectd
More information about the collectd
mailing list