Agentx++ protocol services not set, aborting error
Frank Fock
Frank.Fock____t-online.de
Wed Aug 2 19:28:13 CEST 2000
Just one line is missing. You have to register the AgentXMaster
instance with the MasterAgentXMib instance. See the necessary
change inline:
Majdi Abuelbassal wrote:
> #include "agentx_master.h"
>
> MasterAgentXMib* mib;
>
> mib = new MasterAgentXMib();
>
> AgentXMaster* agentx = new AgentXMaster();
> #ifdef AX_UNIX_SOCKET
> agentx->set_connect_mode(AX_USE_UNIX_SOCKET);
> agentx->set_unix_port_loc("/home/majdi/snmp/var/agentx/");
> printf("p0\n");
> #else
> agentx->set_connect_mode(AX_USE_TCP_SOCKET);
> printf("p1\n");
> #endif
mib->set_agentx(agentx);
That's all ;-)
Best regards,
Frank
More information about the AGENTPP
mailing list