Hello Friends
Finally I got solution to my problem.
my agent able to connect main agent
I forgot to call
SOCK_STARTUP;
fuction before init_agent function call
this is nesessary because init_agent function internally
call socket function & if we don't call SOCK_STARTUP before
socket it will give yo
yes i tried with that version also
it wont work
thanks for reply
Regards
Bhushan
On 12/7/06, Magnus Fromreide <[EMAIL PROTECTED]> wrote:
On ons, 2006-12-06 at 18:04 +0530, bhushan wrote:
> hello friends
> for finding reason for this failure i found that
> following function get call when i call
On ons, 2006-12-06 at 18:04 +0530, bhushan wrote:
> hello friends
> for finding reason for this failure i found that
> following function get call when i call init_agent
> init_agent
> |--subagent_pre_init
> |--agentx_reopen_session
> |--subagent_open_ma
sizeof(buf), "Warning: "
"Failed to connect to the agentx master agent
(%s)",
sess.peername);
netsnmp_sess_log_error(LOG_WARNING, buf, &sess);
} else {
snprintf(buf, sizeof(buf), "Error: "
mp("sub-agent");
if (!agentx_subagent)
init_master_agent();
keep_running = 1;
send_trap( );
return 0;
}
so when i run this code it throws following warning
No log handling enabled - turning on stderr logging
Warning: Failed to connect to the agentx master agent (udp:localhost:705):
Unknown h