Okay, the first command: 

snmpd -f -Le

all I got was this:

Connection from 127.0.0.1
Connection from 127.0.0.1
Connection from 127.0.0.1
Connection from 127.0.0.1
Connection from 127.0.0.1
Connection from 127.0.0.1
Connection from 127.0.0.1
Connection from 127.0.0.1
Connection from 127.0.0.1
Connection from 127.0.0.1

And so on.

Nothing exciting happening.

However on the 2nd command:

snmpd -f -Le -D

it was going on fine until it stopped. Here's what I can copy & paste from
the terminal window's buffet. Sorry for the long debug message but I thought
that the more details I can post, the more chance you can see what went
wrong.

The last message was...

container:   _factory_free_list() called for ssll_container
trace: _factory_free(): container.c, 30:
container:   _factory_free_list() called for table_container
trace: netsnmp_clear_tdomain_list(): snmp_transport.c, 218:
tdomain: clear_tdomain_list() called
trace: clear_callback(): callback.c, 290:
callback: clear callback
debian:/home/tony#


And below is the copy & paste text


trace: snmp_realloc_rbuild_var_op(): snmp.c, 341:
dumph_send:     Value
dumpx_send:      42 01 37
dumpv_send:        UInteger:    55 (0x37)
trace: snmp_realloc_rbuild_var_op(): snmp.c, 442:
dumph_send:     Name
dumpx_send:      06 09 2B 06 01 02 01 19 01 06 00
dumpv_send:        ObjID: HOST-RESOURCES-MIB::hrSystemProcesses.0
trace: snmp_pdu_realloc_rbuild(): snmp_api.c, 3139:
dumph_send:   VarBind
trace: snmp_realloc_rbuild_var_op(): snmp.c, 341:
dumph_send:     Value
dumpx_send:      42 01 37
dumpv_send:        UInteger:    55 (0x37)
trace: snmp_realloc_rbuild_var_op(): snmp.c, 442:
dumph_send:     Name
dumpx_send:      06 09 2B 06 01 02 01 19 01 06 00
dumpv_send:        ObjID: HOST-RESOURCES-MIB::hrSystemProcesses.0
trace: snmp_pdu_realloc_rbuild(): snmp_api.c, 3207:
dumph_send: error index
dumpx_send:  02 01 00
dumpv_send:    Integer: 0 (0x00)
trace: snmp_pdu_realloc_rbuild(): snmp_api.c, 3220:
dumph_send: error status
dumpx_send:  02 01 00
dumpv_send:    Integer: 0 (0x00)
trace: snmp_pdu_realloc_rbuild(): snmp_api.c, 3233:
dumph_send: request_id
dumpx_send:  02 04 5E A2 5D CA
dumpv_send:    Integer: 1587699146 (0x5EA25DCA)
trace: _snmp_build(): snmp_api.c, 2778:
dumph_send: Community String
dumpx_send:  04 04 74 30 6E 79
dumpv_send:    String:  t0ny
trace: _snmp_build(): snmp_api.c, 2794:
dumph_send: SNMP Version Number
dumpx_send:  02 01 00
dumpv_send:    Integer: 0 (0x00)
trace: _snmp_build(): snmp_api.c, 2812:
dumph_send: SNMPv1 Message
trace: netsnmp_udp_send(): snmpUDPDomain.c, 166:
netsnmp_udp: send 97 bytes from 0x810b9ff to 127.0.0.1 on fd 9
trace: netsnmp_remove_and_free_agent_snmp_session(): snmp_agent.c, 1528:
snmp_agent: REMOVE session == 0x80ef8a8
trace: free_agent_snmp_session(): snmp_agent.c, 1143:
snmp_agent: agent_sesion 0x80ef8a8 released
trace: handle_snmp_packet(): snmp_agent.c, 1665:
snmp_agent: end of handle_snmp_packet, asp = 0x80ef8a8
trace: _sess_read(): snmp_api.c, 5210:
sess_read: not reading 6 (fdset 0xbfffeb70 set 0)
trace: _sess_read(): snmp_api.c, 5210:
sess_read: not reading 3 (fdset 0xbfffeb70 set 0)
trace: snmp_sess_select_info(): snmp_api.c, 5622:
sess_select: for all sessions: 9 6 3
trace: receive(): snmpd.c, 1119:
snmpd/select: select( numfds=10, ..., tvp=0xbfffea68)
trace: receive(): snmpd.c, 1121:
snmpd/select: returned, count = -1
select: Invalid argument
trace: should_init(): mib_modules.c, 126:
mib_init: initializing: proxy
trace: proxy_free_config(): ucd-snmp/proxy.c, 201:
proxy_free_config: Free config
trace: main(): snmpd.c, 987:
snmpd/main: sending shutdown trap
trace: netsnmp_send_traps(): agent_trap.c, 603:
trap: send_trap 6 2 NET-SNMP-MIB::netSnmpNotificationPrefixtrace:
netsnmp_send_traps(): agent_trap.c, 605:
trap:
trace: snmp_call_callbacks(): callback.c, 176:
callback: START calling callbacks for maj=1 min=6
trace: snmp_call_callbacks(): callback.c, 184:
callback: calling a callback for maj=1 min=6
trace: send_notifications(): notification/snmpNotifyTable.c, 95:
send_notifications: starting: pdu=80c5e80, vars=0
trace: snmp_call_callbacks(): callback.c, 196:
callback: END calling callbacks for maj=1 min=6 (1 called)
trace: snmp_call_callbacks(): callback.c, 176:
callback: START calling callbacks for maj=1 min=7
trace: snmp_call_callbacks(): callback.c, 184:
callback: calling a callback for maj=1 min=7
trace: send_notifications(): notification/snmpNotifyTable.c, 95:
send_notifications: starting: pdu=80f7c38, vars=80f9000
trace: snmp_call_callbacks(): callback.c, 196:
callback: END calling callbacks for maj=1 min=7 (1 called)
trace: main(): snmpd.c, 989:
snmpd/main: Bye...
trace: snmp_store(): snmp_api.c, 818:
snmp_store: storing stuff...
trace: snmp_save_persistent(): read_config.c, 1217:
snmp_save_persistent: saving snmpd files...
trace: snmp_save_persistent(): read_config.c, 1229:
snmp_save_persistent:  saving old config file: /var/lib/snmp/snmpd.conf ->
/var/lib/snmp/snmpd.0.conf.
trace: read_config_store(): read_config.c, 1169:
read_config: storing: #
# net-snmp (or ucd-snmp) persistent data file.
#
############################################################################
# STOP STOP STOP STOP STOP STOP STOP STOP STOP
#
#          **** DO NOT EDIT THIS FILE ****
#
# STOP STOP STOP STOP STOP STOP STOP STOP STOP
############################################################################
#
# DO NOT STORE CONFIGURATION ENTRIES HERE.
# Please save normal configuration tokens for snmpd in
SNMPCONFPATH/snmpd.conf.
# Only "createUser" tokens should be placed here by snmpd administrators.
# (Did I mention: do not edit this file?)
#


trace: snmp_call_callbacks(): callback.c, 176:
callback: START calling callbacks for maj=0 min=1
trace: snmp_call_callbacks(): callback.c, 184:
callback: calling a callback for maj=0 min=1
trace: snmp_call_callbacks(): callback.c, 184:
callback: calling a callback for maj=0 min=1
trace: snmp_call_callbacks(): callback.c, 184:
callback: calling a callback for maj=0 min=1
trace: snmp_call_callbacks(): callback.c, 184:
callback: calling a callback for maj=0 min=1
trace: snmp_call_callbacks(): callback.c, 184:
callback: calling a callback for maj=0 min=1
trace: store_snmpNotifyTable(): notification/snmpNotifyTable.c, 424:
snmpNotifyTable: storing data...  trace: store_snmpNotifyTable():
notification/snmpNotifyTable.c, 461:
snmpNotifyTable: done.
trace: snmp_call_callbacks(): callback.c, 184:
callback: calling a callback for maj=0 min=1
trace: store_snmpNotifyFilterTable(): notification/snmpNotifyFilterTable.c,
238:
snmpNotifyFilterTable: storing data...  trace:
store_snmpNotifyFilterTable(): notification/snmpNotifyFilterTable.c, 288:
snmpNotifyFilterTable: done.
trace: snmp_call_callbacks(): callback.c, 184:
callback: calling a callback for maj=0 min=1
trace: store_snmpNotifyFilterProfileTable():
notification/snmpNotifyFilterProfileTable.c, 224:
snmpNotifyFilterProfileTable: storing data...  trace:
store_snmpNotifyFilterProfileTable():
notification/snmpNotifyFilterProfileTable.c, 262:
snmpNotifyFilterProfileTable: done.
trace: snmp_call_callbacks(): callback.c, 184:
callback: calling a callback for maj=0 min=1
trace: snmp_call_callbacks(): callback.c, 184:
callback: calling a callback for maj=0 min=1
trace: snmp_call_callbacks(): callback.c, 184:
callback: calling a callback for maj=0 min=1
trace: read_config_store(): read_config.c, 1169:
read_config: storing: engineBoots 14
trace: read_config_store(): read_config.c, 1169:
read_config: storing: oldEngineID 0x800007e58097f0027844504d41
trace: snmp_call_callbacks(): callback.c, 196:
callback: END calling callbacks for maj=0 min=1 (10 called)
trace: snmp_clean_persistent(): read_config.c, 1276:
snmp_clean_persistent: cleaning snmpd files...
trace: snmp_clean_persistent(): read_config.c, 1287:
snmp_clean_persistent:  removing old config file: /var/lib/snmp/snmpd.0.conf
trace: snmp_call_callbacks(): callback.c, 176:
callback: START calling callbacks for maj=0 min=2
trace: snmp_call_callbacks(): callback.c, 184:
callback: calling a callback for maj=0 min=2
trace: free_enginetime_on_shutdown(): snmpv3.c, 632:
snmpv3: free enginetime callback called
trace: sc_hash(): scapi.c, 386:
trace: sc_get_properlength(): scapi.c, 115:
trace: snmp_call_callbacks(): callback.c, 184:
callback: calling a callback for maj=0 min=2
trace: deinit_usm_post_config(): snmpusm.c, 2747:
deinit_usm_post_config: initial user removed
trace: snmp_call_callbacks(): callback.c, 184:
callback: calling a callback for maj=0 min=2
trace: snmp_call_callbacks(): callback.c, 196:
callback: END calling callbacks for maj=0 min=2 (3 called)
trace: snmp_alarm_unregister_all(): snmp_alarm.c, 188:
snmp_alarm: ALL alarms unregistered
trace: netsnmp_callback_close(): snmpCallbackDomain.c, 329:
transport_callback: hook_close enter
trace: netsnmp_callback_close(): snmpCallbackDomain.c, 341:
transport_callback: hook_close exit
trace: netsnmp_callback_close(): snmpCallbackDomain.c, 329:
transport_callback: hook_close enter
trace: netsnmp_callback_close(): snmpCallbackDomain.c, 341:
transport_callback: hook_close exit
trace: unlink_tree(): parse.c, 819:
unlink_tree: Tree node iso has no parent
trace: unlink_tree(): parse.c, 819:
unlink_tree: Tree node ccitt has no parent
trace: unlink_tree(): parse.c, 819:
unlink_tree: Tree node joint-iso-ccitt has no parent
trace: proxy_free_config(): ucd-snmp/proxy.c, 201:
proxy_free_config: Free config
trace: netsnmp_container_free_list(): container.c, 72:
container: netsnmp_container_free_list() called
trace: _factory_free(): container.c, 30:
container:   _factory_free_list() called for binary_array
trace: _factory_free(): container.c, 30:
container:   _factory_free_list() called for linked_list
trace: _factory_free(): container.c, 30:
container:   _factory_free_list() called for null
trace: _factory_free(): container.c, 30:
container:   _factory_free_list() called for sorted_singly_linked_list
trace: _factory_free(): container.c, 30:
container:   _factory_free_list() called for ssll_container
trace: _factory_free(): container.c, 30:
container:   _factory_free_list() called for table_container
trace: netsnmp_clear_tdomain_list(): snmp_transport.c, 218:
tdomain: clear_tdomain_list() called
trace: clear_callback(): callback.c, 290:
callback: clear callback
debian:/home/tony#


Many thanks,

Tony Sutton
 


-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Dave Shield
Sent: 08 October 2004 09:30
To: Tony Sutton
Cc: [EMAIL PROTECTED]
Subject: Re: snmpd problem 


> I did a ps aux | grep snmp after starting it up and I can see it 
> running in the background. But soon, it disappears from the list. 
> Usually 8 to 10 mins later on.

Sounds odd.

Try starting the agent in a spare terminal using

        snmpd -f -Le

and seeing if it prints anything when it dies.
If not, then try

        snmpd -f -Le -D

(which will spew out tons and tons of meaningless stuff).
Then wait until it dies.
   What was output immediately before it fell over?

Dave

PS: Please - no HTML mail.  Thanks



-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal Use
IT products in your business? Tell us what you think of them. Give us Your
Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
_______________________________________________
Net-snmp-users mailing list
[EMAIL PROTECTED]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users




-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
_______________________________________________
Net-snmp-users mailing list
[EMAIL PROTECTED]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users

Reply via email to