host-sflow
host-sflow copied to clipboard
hsflowd is listening to a RANDOM UDP after every restart
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.
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.