[AGENT++] How to connect to master agentX server?
Frank Fock
fock at agentpp.com
Tue Nov 11 00:47:51 CET 2014
Hi Claus,
I think IPv6 addresses are not supported by the sample sub-agent for the
TCP connection.
You should provide a IPv4 address including the port (if you want a
different port than 705).
Best regards,
Frank
Am 10.11.2014 23:33, schrieb Claus Klein:
> Hi Frank
>
> what is the right way to connect to a running master agent on port localhost:705
>
> claus-mbp:lib clausklein$ ../bin/subagent ::1
>
> : (1)EVENT : AgentXSlave: connecting on TCP (socket)(port): (3), (705)
> 20141110.23:22:44: 10 A3 F3 73 FF 7F 00 00 ...s....
> : (1)ERROR : AgentXSlave: could not connect TCP socket (port)(errno): (705), (Address family not supported by protocol family)
> 20141110.23:22:44: 10 A3 F3 73 FF 7F 00 00 ...s....
> : (1)ERROR : SuAgentXMib: could not bind any port. Aborting.
> 20141110.23:22:44: 10 A3 F3 73 FF 7F 00 00 ...s....
> : (1)WARNING: SubAgentXMib: not connected with master agent!
>
>
> claus-mbp:lib clausklein$ ../bin/subagent nmsv6
>
> : (1)EVENT : AgentXSlave: connecting on TCP (socket)(port): (3), (705)
> 20141110.23:24:25: 10 A3 F3 73 FF 7F 00 00 ...s....
> : (1)ERROR : AgentXSlave: could not connect TCP socket (port)(errno): (705), (Invalid argument)
> 20141110.23:24:25: 10 A3 F3 73 FF 7F 00 00 ...s....
> : (1)ERROR : SuAgentXMib: could not bind any port. Aborting.
> 20141110.23:24:25: 10 A3 F3 73 FF 7F 00 00 ...s....
> : (1)WARNING: SubAgentXMib: not connected with master agent!
>
> same for
> ../bin/subagent localhost
>
> claus-mbp:lib clausklein$ cat /etc/hosts
> ##
> # Host Database
> #
> # localhost is used to configure the loopback interface
> # when the system is booting. Do not change this entry.
> ##
> 127.0.0.1 localhost
> ::1 nmsv6
> 255.255.255.255 broadcasthost
> ::1 localhost
> fe80::1%lo0 localhost
> claus-mbp:lib clausklein$
>
>
> only when i start the subagent as superuser it works; if not:
>
> : (2)EVENT : SubAgentXMib: opening socket
> 20141110.23:31:09: 10 A3 F3 73 FF 7F 00 00 ...s....
> : (1)ERROR : AgentXSlave: could not bind unix domain socket (location): (/var/agentx/subagent85598)
> 20141110.23:31:09: 10 A3 F3 73 FF 7F 00 00 ...s....
> : (1)EVENT : AgentXSlave: connecting on TCP (socket)(port): (3), (705)
> 20141110.23:31:09: 10 A3 F3 73 FF 7F 00 00 ...s....
> : (1)ERROR : AgentXSlave: could not connect TCP socket (port)(errno): (705), (Invalid argument)
> 20141110.23:31:09: 10 A3 F3 73 FF 7F 00 00 ...s....
> : (1)ERROR : SuAgentXMib: could not bind any port. Aborting.
> 20141110.23:31:09: 10 A3 F3 73 FF 7F 00 00 ...s....
> : (1)WARNING: SubAgentXMib: not connected with master agent!
>
> With regards
> Claus
>
>
> _______________________________________________
> AGENTPP mailing list
> AGENTPP at agentpp.org
> https://oosnmp.net/mailman/listinfo/agentpp
--
---
AGENT++
Maximilian-Kolbe-Str. 10
73257 Koengen, Germany
https://agentpp.com
Phone: +49 7024 8688230
Fax: +49 7024 8688231
More information about the AGENTPP
mailing list