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 15/04/2008, Larry Dickson <ldickson@cuttedge.com> wrote: > netsnmp_assert !"registration != duplicate" failed > ...


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-16-2008
Dave Shield
 
Posts: n/a
Default Re: 5.4.1 won't talk

On 15/04/2008, Larry Dickson <ldickson@cuttedge.com> wrote:
> 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()


You can ignore those - they're harmless.


> Turning on AgentX master support.
> Error: Couldn't open a master agentx socket to listen on ():


Who are you running this agent as? Root, or a different user?

Do you have an "agentXSocket" directive in your snmpd.conf file?
What AgentX-related config settings do you have?

Does the directory /var/agentx exist before you start the agent?
What about the socket /var/agentx/master
(both before and after starting the agent).


> This means agentx_sockets =
> strdup(netsnmp_get_string(NETSNMP_DS_APPLICATION_I D,
> NETSNMP_DS_AGENT_X_SOCKET)) returned nothing


That's normal.
This is the mechanism for overriding the default AgentX socket
(either via the 'AgentXSocket' config directive, or the -x command
line option).


The issue actually lies with setting the default value (a few lines later).
This changed from
agentx_sockets = strdup( {NETSNMP_}AGENTX_SOCKET );

in the 5.2.x and 5.3.x lines, and is now
agentx_sockets = strdup( "" );

This was part of SVN revision 15258, aimed at introducing a
more flexible transport creation mechanism. It may be that
this has broken (or changed) the default AgentX behaviour.

A simple workaround would be to specify the AgentX port
explicitly - either in the snmpd.conf file

agentXSocket /var/agentx/master

or on the command line

snmpd -x /var/agentx/master .....

Dave

-------------------------------------------------------------------------
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:03 AM.


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