On ons, 2008-04-16 at 10:35 -0700, Larry Dickson wrote:

> ::::::::::::::
> snmpd.conf-old
> ::::::::::::::
> #version 1
> rocommunity public
> rwcommunity private
> master agentx
> agentXSocket /var/agentx/master
> perl do /etc/edgeware-subagent.pl
> ::::::::::::::
> Dtdomain.out
> ::::::::::::::
> No log handling enabled - turning on stderr logging
> registered debug token tdomain, 1
> 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()
> tdomain: netsnmp_tdomain_init() called
> tdomain: domain_list -> { iso.3.6.1.6.1.1, "udp" } ->
> { iso.3.6.1.2.1.100.1.5, "tcp" } -> { iso.3.6.1.2.1.100.1.13, "unix" }
> -> { iso.3.6.1.2.1.100.1.2, "udp6/ipv6/udpv6/udpipv6" } ->
> { iso.3.6.1.2.1.100.1.6, "tcp6/tcpv6/tcpipv6" } -> [NIL]
> Turning on AgentX master support.


Here the agent failed to even try to open an agentx socket.

> Bareword found where operator expected at (eval 2) line 1, near
> "/etc/edgeware"
> (Missing operator before edgeware?)
> NET-SNMP version 5.4.1
> Connection from UDP: [127.0.0.1]:32775
> ::::::::::::::
> subagent.out
> ::::::::::::::
> 286 keys found in ordered_leaf_oids after get_in_order_oids call.
> 339 = size of oids_chomp; 339 size of next_leaf_str.
> .1.3.6.1.4.1.22782 (cuttedge) = first oid; .1.3.6.1.4.1.22782.1.1.1
> (productType) = first leaf.
> perl_module.pl loaded ok
> registering at cuttedge
> 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()
> started us as a subagent (NetSNMP::agent=HASH(0x1182030))
> BEFORE registration at cuttedge
> AFTER registration at cuttedge
> Yes I am a subagent approaching running loop.
> ::::::::::::::
> snmpd.conf
> ::::::::::::::
> #version 1
> rocommunity public
> rwcommunity private
> master agentx
> agentXSocket /var/agentx/master
> ::::::::::::::
> Dtdomain2.out
> ::::::::::::::
> No log handling enabled - turning on stderr logging
> registered debug token tdomain, 1
> 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()
> tdomain: netsnmp_tdomain_init() called
> tdomain: domain_list -> { iso.3.6.1.6.1.1, "udp" } ->
> { iso.3.6.1.2.1.100.1.5, "tcp" } -> { iso.3.6.1.2.1.100.1.13, "unix" }
> -> { iso.3.6.1.2.1.100.1.2, "udp6/ipv6/udpv6/udpipv6" } ->
> { iso.3.6.1.2.1.100.1.6, "tcp6/tcpv6/tcpipv6" } -> [NIL]
> Turning on AgentX master support.
> tdomain: tdomain_transport_full("agentx", "/var/agentx/master", 1,
> "[NIL]", "[NIL]")
> tdomain: Address starts with '/', so assume "unix" domain
> tdomain: Found domain "unix" from specifier "unix"
> tdomain: domain "unix" address "/var/agentx/master" default address
> "/var/agentx/master"


Here we can see that
a) The agent tries to open a unix socket at /var/agentx/master
b) You do not need the agentXsocket config directive, you needed, as you
noted, to remove the perl do directive. As for further perl
interactions that is out of my league.

/MF


-------------------------------------------------------------------------
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;198757...un.com/javaone
_______________________________________________
Net-snmp-coders mailing list
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/...et-snmp-coders