Hi all,

Our path from net-snmp 5.2.1 to 5.4.1 has been blocked for months because
the latter refuses to talk to our subagent. It worked fine in 5.2.1; we
could even do a full walk through our MIB. Has anyone run across a problem
like this? Following are some collected notes.

TIA,
Larry

The new /var/log/snmpd.log is:

netsnmp_assert !"registration != duplicate" failed agent_registry.c:535
netsnmp_subtree_load()
netsnmp_assert !"registration != duplicate" failed agent_registry.c:535
netsnmp_subtree_load()
netsnmp_assert !"registration != duplicate" failed agent_registry.c:535
netsnmp_subtree_load()
Turning on AgentX master support.
Error: Couldn't open a master agentx socket to listen on ():

Retried after reboot. This time the response again was quick, and the
subagent survived but not snmpd. Doing a restart or a stop / start by hand
takes longer (but that is variable); it shuts down properly, but on start it
THINKS it has succeeded both with the smnpd and the subagent, but the first
three error messages (only) show up, and snmpd is silently killed.

Results of net-snmp-5.4.1 search thus far: Error message (search on "master
agentx socket" because it's split) apparently comes from
agent/mibgroup/agentx/master.c and ends in () which implies that
sess.peername is empty. This means agentx_sockets =
strdup(netsnmp_get_string(NETSNMP_DS_APPLICATION_ID,
NETSNMP_DS_AGENT_X_SOCKET)) returned nothing, but netsnmp_get_string (in
snmplib/default_store.c) merely looks up from a 2D array. Thus it appears
that this static APPLICATION_ID AGENTX_SOCKET did not get initialized for
some reason.

Further info: It is NETSNMP_DS_AGENT_X_SOCKET. It seems to get set by
agentx_parse_agentx_socket, which is the second formal of
agentx_register_config_handler("agentxsocket",...), both in
agentx_config.c.There are a lot of files in testing/tests referring to
agentxsocket, mostly offering /dev/null.
-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to