[AGENT++] How to connect to master agentX server?
Claus Klein
claus.klein at arcormail.de
Mon Nov 10 23:33:50 CET 2014
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
More information about the AGENTPP
mailing list