Skip to content

Conversation

@ejvr
Copy link

@ejvr ejvr commented Aug 2, 2025

This patch will add support for TCP (ip4 or ipv6) connections from subagent to agent in addition to unix sockets.

A tcp connection can be initiated by passing tcp:<ipaddress>:port as socket-path to the constructor of the Agent.
This is the same convention as using to snmpd.conf to specify agentXSocket.

Passing a path to a unix socket (eg. /var/agentx/master) works as before. You can also use unix:/var/agentx/master.

Very few changes are needed to do this, because tcp sockets behave similar to unix sockets. I also tried UDP sockets, but that requires more changes in the Network class.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant