[AGENT++] registeration of Sub agent to Master
Frank Fock
fock at agentpp.com
Mon Nov 17 20:52:16 CET 2003
Hello Rajeev,
What is the output of the master agent?
Comments inline:
Rajeev Bhatia wrote:
>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");
>
>
Why are you appending "/0" to the IP address?
>#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)
>
>
Does the directory /var/agentx exists and does the subagent has
enough access permissions for it?
>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)
>
>
Please check address of the master agent (see above).
>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.
>
>
>
Best regards,
Frank
More information about the AGENTPP
mailing list