I'm seeing the same thing with the move to v5.4.1, and did not see it
with v5.3.1. I barely touched my agent code to change from v5.3.1 to
v5.4.1, so it's not new functionality. Trace attached.
Some oddities about it:
1) Claims no log output configured, though I have the -Lo switch.
2) Duplicates all messages. (Maybe related; if I send stdout to a file,
it only gets one set of messages).
3) The error complaint is only seen with the debug build (-ggdb)
4) If I leave off the -DToolkit from the command line, I get a flood of
trace messages. If I put it back (changing nothing else), the trace
attached is what I see.
5) I am not using agentX and my snmpd.conf is also simple and only has
v1 configuration items.
(Haven't had time to trace it yet, since it's not apparently harming
operation and I'm early in a new phase of development.)
Need Help wrote:
> Could we see your snmpd.conf?
My snmpd.conf has the following 3 lines in it:
master agentx
agentxsocket /var/agentx/master
rocommunity pace_ro
I guess I should mention, when our environment starts up, then we load
and start the subagent task. I see the "failed agent_registry.c:535
netsnmp_subtree_load()" lines when the subagent starts. The master
agent has not been started yet. Perhaps these are normal to be
dislpayed when the subagent starts before the master agent has started?
Bruce Shaw <[EMAIL PROTECTED]> wrote: Could we see your snmpd.conf?
For security reasons, alter the various security strings.
>I just noticed I get the following three lines dislpayed right after my
SNMP subagent task is requested to be started. Are these normal to see
or possibly a result of a problem which needs to be solved?
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()
toms-suse: # ./snmpd -f -Lo -c ./snmpd.conf -Dtoolkit
No log handling enabled - turning on stderr logging
trace: main(): snmpd.c, 448:
signal: registering SIGTERM signal handler
trace: main(): snmpd.c, 452:
signal: registering SIGINT signal handler
trace: main(): snmpd.c, 459:
signal: registering SIGUSR1 signal handler
trace: main(): snmpd.c, 463:
signal: registering SIGPIPE signal handler
registered debug token toolkit, 1
registered debug token toolkit, 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()
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()
_callback_lock already locket in snmp_unregister_callback
_callback_lock already locket in snmp_unregister_callback
<...My debug messages, all duplicated here ...>
NET-SNMP version 5.4.1
NET-SNMP version 5.4.1
<kill here>
Received TERM or STOP signal... shutting down...
Received TERM or STOP signal... shutting down...
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders