The master and subagent are in the same machine. Also for security reasons, I
prefer to have only unix domain soackets. :-(
________________________________
From: rakesh zingade <rakeshzing...@gmail.com>
To: Princy Gift <ajpri...@yahoo.co.in>
Cc: net-snmp-coders@lists.sourceforge.net
Sent: Mon, 6 December, 2010 6:06:03 PM
Subject: Re: Master-Agentx Registration fails
I did AgentX in other way
my snmpd.conf has following:
master agentx
executing snmpd as:
snmpd -x "tcp:localhost:705"
and I set following in my subagent code:
netsnmp_ds_set_string(NETSNMP_DS_APPLICATION_ID,
NETSNMP_DS_AGENT_X_SOCKET,
"tcp:localhost:705");
On Mon, Dec 6, 2010 at 5:23 PM, Princy Gift <ajpri...@yahoo.co.in> wrote:
Hi All,
>
>
>I am trying to setup a sample master - agentx setup of net-snmp using 5.4.3.
>
>
>When I enable debug traces, I observe that my Agentx is not getting attached
>to
>the master properly.
>I see that my Agentx is not getting attached with my master.
>
>
>bash# ls -l /var/agentx/master
>srwxr-xr-x 1 root root 0 Dec 6 03:26 /var/agentx/master
>
>
>MY snmpd.conf
>--------------------
>rocommunity public localhost
>rwcommunity private localhost
>master on
>agentXSocket /var/agentx/master
>
>
>My snmpd start up logs are, I see some MIB objects are not registered in my
>master with "Cannot find module" errors. Does this have something to do with
>my
>master-agentx communication failure?
>bash# /cisco-ar/ucd-snmp/sbin/snmpd -f -x /var/agentx/master -Dagentx
>Cannot adopt OID in NET-SNMP-AGENT-MIB: nsNotifyShutdown ::= {
>netSnmpNotifications 2 }
>Cannot adopt OID in NET-SNMP-AGENT-MIB: nsNotifyRestart ::= {
>netSnmpNotifications 3 }
>Turning on AgentX master support.
>agentx/config: port spec: /var/agentx/master
>agentx/master: initializing...
>agentx/master: initializing... DONE
>
>
>
>
>Turning on AgentX master support.
>agentx/config: port spec: /var/agentx/master
>agentx/master: initializing...
>
>
>trace: _agentx_realloc_build(): agentx/protocol.c, 1003:
>agentx_build: packet built okay
>trace: netsnmp_unix_send(): snmpUnixDomain.c, 160:
>netsnmp_unix: send 80 bytes to 0x895f800 on fd 17
>trace: snmp_sess_select_info(): snmp_api.c, 5625:
>sess_select: for all sessions: 17 15
>trace: snmp_sess_select_info(): snmp_api.c, 5625:
>sess_select: for all sessions: 17 15
>trace: agentx_synch_input(): agentx/client.c, 76:
>agentx/subagent: synching input, op 0x02
>trace: netsnmp_unix_close(): snmpUnixDomain.c, 193:
>netsnmp_unix: close: client unlink("")
>trace: subagent_register_ping_alarm(): agentx/subagent.c, 903:
>agentx/subagent: subagent not properly attached, postponing registration till
>later....
>trace: snmp_alarm_register(): snmp_alarm.c, 427:
>snmp_alarm: registered alarm 1, t = 15.000, flags=0x01
>trace: netsnmp_callback_transport(): snmpCallbackDomain.c, 412:
>transport_callback: initialized 2 linked to 1
>trace: snmp_sess_add_ex(): snmp_api.c, 1463:
>snmp_sess_add: fd 17
>trace: snmp_call_callbacks(): callback.c, 180:
>callback: START calling callbacks for maj=0 min=5
>trace: snmp_call_callbacks(): callback.c, 200:
>callback: END calling callbacks for maj=0 min=5 (0 called)
>trace: init_subagent(): agentx/subagent.c, 105:
>agentx/subagent: init_subagent sess 084f0710
>trace: configure(): snmpagent.cpp, 190:
>SNMPAgent::initiate :: init_agent(test) failed
>
>
>Can someone help me let me know if I am missing something in the setup?
>
>
>P.S:Also I see that the setup is working fine with Net-SNMP 5.1 version.
>
>
>Thanks,
>Princy
>
>
>
>
>
>
>
>------------------------------------------------------------------------------
>What happens now with your Lotus Notes apps - do you make another costly
>upgrade, or settle for being marooned without product support? Time to move
>off Lotus Notes and onto the cloud with Force.com, apps are easier to build,
>use, and manage than apps on traditional platforms. Sign up for the Lotus
>Notes Migration Kit to learn more. http://p.sf.net/sfu/salesforce-d2d
>_______________________________________________
>Net-snmp-coders mailing list
>Net-snmp-coders@lists.sourceforge.net
>https://lists.sourceforge.net/lists/listinfo/net-snmp-coders
>
>
--
Rakesh P. Zingade
+919420626099
------------------------------------------------------------------------------
What happens now with your Lotus Notes apps - do you make another costly
upgrade, or settle for being marooned without product support? Time to move
off Lotus Notes and onto the cloud with Force.com, apps are easier to build,
use, and manage than apps on traditional platforms. Sign up for the Lotus
Notes Migration Kit to learn more. http://p.sf.net/sfu/salesforce-d2d
_______________________________________________
Net-snmp-coders mailing list
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders