[AGENT++] registeration of Sub agent to Master
Rajeev Bhatia
rajeev_luckin at rediffmail.com
Mon Nov 17 11:53:04 CET 2003
An HTML attachment was scrubbed...
URL: http://lists.agentpp.org/pipermail/agentpp/attachments/20031117/45281c21/attachment.htm
-------------- next part --------------
Hello,
my sub agent is running on 10.0.5.17 and master on 192.10.13.5
To register Sub agent to master I understood to write :
#ifdef AX_UNIX_SOCKET
agentx->set_unix_port_loc("/var/agentx/");
agentx->set_connect_mode(AX_USE_UNIX_SOCKET |AX_USE_TCP_SOCKET);
agentx->set_master_address("192.10.13.5/0");
#else
but I am getting error log in subagent :
19700101.01:50:05: 1223: (1)DEBUG : TaskManager: thread started
19700101.01:50:05: 1225: (1)DEBUG : Thread: started (tid): (1026)
19700101.01:50:05: 1226: (1)DEBUG : Thread: started (tid): (2051)
19700101.01:50:05: 1227: (1)DEBUG : Thread: started (tid): (0)
19700101.01:50:05: 1223: (1)DEBUG : TaskManager: thread started
19700101.01:50:05: 1223: (1)DEBUG : TaskManager: thread started
19700101.01:50:05: 1228: (1)DEBUG : Thread: started (tid): (4101)
19700101.01:50:05: 1223: (3)DEBUG : MibContext: adding MIB object (context)(oid): (sml), (1.3.6.1.4.1.10931.3.12)
19700101.01:50:05: 1223: (3)DEBUG : MibContext: adding MIB object (context)(oid): (), (1.3.6.1.4.1.10931.3.12)
19700101.01:50:05: 1223: (2)EVENT : SubAgentXMib: opening socket
19700101.01:50:05: 1223: (1)ERROR : AgentX: could not bind unix domain socket (location): (/var/agentx/subagent01223)
19700101.01:50:05: 1223: (1)EVENT : AgentXSlave: listening on TCP (socket)(port): (5), (705)
19700101.01:50:05: 1223: (1)ERROR : AgentX: could not connect TCP socket (port)(errno): (705), (111)
19700101.01:50:05: 1223: (1)ERROR : SuAgentXMib: could not bind any port. Aborting.
Please Suggest me where I am wrong and what I should do.
regards
Rajeev Bhatia
More information about the AGENTPP
mailing list