From: SourceForge.net <no...@so...> - 2007-09-30 21:01:23
|
Bugs item #1801793, was opened at 2007-09-25 08:11 Message generated for change (Comment added) made by magfr You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=112694&aid=1801793&group_id=12694 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: library >Group: None >Status: Closed Resolution: None Priority: 5 Private: No Submitted By: Nobody/Anonymous (nobody) >Assigned to: Magnus Fromreide (magfr) Summary: 5.4.1 Win32 agentx subagent fails with "localhost:705" Initial Comment: Agentx subagents built with 5.4.1-win32 release libraries fail on start with the following errors: No support for any checked transport domain Warning: failed to connect to the agentx master agent (localhost:705) This happens also with the sample subagent code provided at http://net-snmp.sourceforge.net/wiki/index.php/TUT:Writing_a_Subagent On versions 5.3.1 and before, agentx subagent works fine. OS: WinXP Professional, SP2 Compiler: MS Visual Studio 2005 SNMP development libraries: 5.4.1-win32 ---------------------------------------------------------------------- Comment By: Magnus Fromreide (magfr) Date: 2007-09-30 23:01 Message: Logged In: YES user_id=1124910 Originator: NO Thanks for the bug report! We've fixed the problem in the 5.4.x code branch and the main development tree, so it should be fixed in future releases of the Net-SNMP package. ---------------------------------------------------------------------- Comment By: Magnus Fromreide (magfr) Date: 2007-09-26 20:52 Message: Logged In: YES user_id=1124910 Originator: NO The problem is that agentx uses unix as it's default transport domain, so when we parses localhost:705 then that is interpreted as. 1. Try the localhost domain - fails, no such domain found 2. Try the default domain, in this case unix. There is no unix support so it fails. Now, what can be done about this is: 1. Change agentx_config.h to check if unix is a configured transport and use tcp as default if it isn't. 2. Add some kind of fallback mechanism to the default handler selection? Further, as a workaround geekindenial could add the line defDomain agentx tcp to some relevant config file, that would change the default domain for agentx to tcp. ---------------------------------------------------------------------- Comment By: Vinh (geekindenial) Date: 2007-09-26 02:22 Message: Logged In: YES user_id=1898427 Originator: NO With master agent spec put back to "localhost:705" and those debug lines added to snmp.conf, this is what I got on the output (note: also, as a side question, why do I have the "netsnmp_assert x failed ..\..\agent\agent_registry.c:535" errors on starting up the subagent? This happens with 5.4.1 release, in both Windows and Linux, even if the subagent does nothing except for initialize agent, initialize snmp, and then shutdown. Does it deserve a separate bug report?) ============================================================= C:\Documents and Settings\vnguy\Desktop\TEST-C\mysnmptest\debug>mytestsnmp.exe netsnmp_assert x failed ..\..\agent\agent_registry.c:535 netsnmp_assert x failed ..\..\agent\agent_registry.c:535 netsnmp_assert x failed ..\..\agent\agent_registry.c:535 trace: ..\..\snmplib\read_config.c, 795: read_config: C:/Program Files/net-snmp/etc/snmp/snmp.conf:5 examining: debugToke ns tdomain trace: ..\..\snmplib\read_config.c, 498: read_config: Found a parser. Calling it: debugTokens / tdomain registered debug token tdomain, 1 tdomain: tdomain_transport_full("agentx", "localhost:705", 0, "[NIL]", "[NIL]") tdomain: Found no domain from specifier "localhost" tdomain: Use application default domain "unix" tdomain: Found no domain from specifier "unix" No support for any checked transport domain Warning: Failed to connect to the agentx master agent (localhost:705): tdomain: tdomain_transport_full("agentx", "localhost:705", 0, "[NIL]", "[NIL]") tdomain: Found no domain from specifier "localhost" tdomain: Use application default domain "unix" tdomain: Found no domain from specifier "unix" No support for any checked transport domain Warning: Failed to connect to the agentx master agent (localhost:705): ============================================================= ---------------------------------------------------------------------- Comment By: Thomas Anders (tanders) Date: 2007-09-25 10:52 Message: Logged In: YES user_id=848638 Originator: NO Yes, please -- with the original "localhost:705" configuration. Again, please also post the snmpd.conf content. ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2007-09-25 10:35 Message: Logged In: NO Yes "tcp:localhost:705" works Would you still want me to add those lines to snmp.conf and get the debug output? ---------------------------------------------------------------------- Comment By: Thomas Anders (tanders) Date: 2007-09-25 09:54 Message: Logged In: YES user_id=848638 Originator: NO Moved to bugs. What's the content of snmpd.conf for the master agent? Can you please try specifying "tcp:localhost:705" instead? Can you please add doDebugging 1 debugTokens tdomain to your snmp.conf (*not* snmpd.conf!) so that we can get debugging output for the subagent? ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=112694&aid=1801793&group_id=12694 |