Re: 5.4.1 won't talk

This is a discussion on Re: 5.4.1 won't talk within the SNMP Coders forums, part of the Networking and Network Related category; On ons, 2008-04-16 at 10:35 -0700, Larry Dickson wrote: > :::::::::::::: > snmpd.conf-old > :::::::::::::: > #version ...


Go Back   Usenet Forums > Networking and Network Related > SNMP Coders

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-17-2008
Magnus Fromreide
 
Posts: n/a
Default Re: 5.4.1 won't talk


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
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 07:02 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0