host-sflow icon indicating copy to clipboard operation
host-sflow copied to clipboard

hsflowd is listening to a RANDOM UDP after every restart

Open nidotech opened this issue 5 years ago • 1 comments

udp 0 0 0.0.0.0:11074 0.0.0.0:* 22032/hsflowd

What is this for? And how can I disable this?

It appears for most distributions debian9, centos7, ubuntu18.

nidotech avatar Oct 29 '19 04:10 nidotech

Isn't that just the UDP socket for sending sFlow datagrams to the collector? It writes to the socket here:

https://github.com/sflow/host-sflow/blob/master/src/Linux/hsflowd.c#L60

but never reads from it. Is there another step that should be followed?

FYI, if you add "json {}" to the hsflowd.conf it will open another UDP socket and listen for local metric data and local transaction samples (see mod_json.c). And the mod_opx module for Openswitch uses a UDP socket to receive packet-samples from hardware. But if you don't include those modules then none of that happens.

sflow avatar Oct 29 '19 05:10 sflow