> > > Can you try the simplifications I suggested 
> > > (taking the snmptrapd subagent behaviour and
main 
> > > subagent PING action out of the equation), and 
> > > try running the master agent with the '-Dagent' 
> > > debugging again.
 
> > Ok, did that. Hope everything's right. I'm sending
> > two files which contain both outputs. 
 
> It doesn't look as if you've turned off the subagent
> PING:
 
> > agentx/subagent: register ping alarm every 15
> > seconds
 
  Ok. Fixed it now!

> > > It might be work running the subagent with
> > > similar debugging as well.  That probably means
> > > tweaking the code to add suitable

> > > debug_register_tokens("agent");
> > >         snmp_set_do_debugging(1);
 
> Hmmm....
> The debugging output from the subagent:
 
> > agentx_build: packet built okay
> > agentx_build: packet built okay
> > agentx_build: packet built okay
 
> is singularly unhelpful!
 
> Maybe it would be more useful to dump the raw
packets
> instead.  Try
 
>    netsnmp_ds_set_boolean(NETSNMP_DS_LIBRARY_ID,
>                       NETSNMP_DS_LIB_DUMP_PACKET,
1);
 
   Ok. Below are my outputs. Funny thing is I think I
posted this before, but I can't find it. I wonder if I
did something wrong and this is not the correct
debug...
   
> But there's no point in sending *all* the debug     
 > output of both sides.  We're only interested in the
 > debugging from immediately before through to       
 > immediately after the problem arises.  A dozen     
 > packets either side should be sufficient.

  Ok, here goes a selected portion from both sides:
MASTER
2005-06-01 15:37:50 agentx_build: packet built okay
2005-06-01 15:37:50 agentx/master: handle pdu
(req=0xef404ab,trans=0x0,sess=0x9)
2005-06-01 15:37:50 agentx/master: send response, stat
0 (req=0xef404ab,trans=0x0,sess=0x9)
2005-06-01 15:37:50 agentx_build: packet built okay
2005-06-01 15:37:50 agentx/master: handle pdu
(req=0xef404ac,trans=0x0,sess=0x9)
2005-06-01 15:37:50 agentx/master: send response, stat
0 (req=0xef404ac,trans=0x0,sess=0x9)
2005-06-01 15:37:50 agentx_build: packet built okay
2005-06-01 15:38:00 agentx/master: FAILED 104 -12
Failure in sendto (Connection reset by peer)
2005-06-01 15:38:00 agentx/master: handle pdu
(req=0xef404ad,trans=0x0,sess=0x9)
2005-06-01 15:38:00 agentx/master: send response, stat
0 (req=0xef404ad,trans=0x0,sess=0x9)
2005-06-01 15:38:00 agentx_build: packet built okay
2005-06-01 15:38:00 agentx/master: FAILED 32 -12
Failure in sendto (Broken pipe)
2005-06-01 15:38:00 agentx/master: handle pdu
(req=0xef404ae,trans=0x0,sess=0x9)
2005-06-01 15:38:00 agentx/master: send response, stat
0 (req=0xef404ae,trans=0x0,sess=0x9)
2005-06-01 15:38:00 agentx_build: packet built okay
2005-06-01 15:38:00 agentx/master: FAILED 32 -12
Failure in sendto (Broken pipe)
2005-06-01 15:38:00 agentx/master: handle pdu
(req=0xef404af,trans=0x0,sess=0x9)

SUBAGENT

agentx_build: packet built okay

Sending 148 bytes to Local IPC: /var/agentx/master
0000: 01 0C 00 00  09 00 00 00  00 00 00 00  47 05 F4
0E    ............G.ô.
0016: 80 00 00 00  43 00 00 00  04 02 00 00  01 00 00
00    ....C...........
0032: 01 00 00 00  03 00 00 00  00 00 00 00  18 19 00
00    ................
0048: 06 00 00 00  06 06 00 00  03 00 00 00  01 00 00
00    ................
0064: 01 00 00 00  04 00 00 00  01 00 00 00  00 00 00
00    ................
0080: 06 04 01 00  01 00 00 00  88 1F 00 00  02 00 00
00    ................
0096: 03 00 00 00  00 00 00 00  01 00 00 00  02 00 00
00    ................
0112: 07 04 00 00  01 00 00 00  88 1F 00 00  02 00 00
00    ................
0128: 03 00 00 00  02 00 00 00  01 00 00 00  00 00 00
00    ................
0144: 38 00 00 00


agentx_build: packet built okay

Sending 208 bytes to Local IPC: /var/agentx/master
0000: 01 0C 00 00  09 00 00 00  00 00 00 00  48 05 F4
0E    ............H.ô.
0016: BC 00 00 00  43 00 00 00  04 02 00 00  01 00 00
00    ¼...C...........
0032: 01 00 00 00  03 00 00 00  00 00 00 00  19 19 00
00    ................
0048: 06 00 00 00  06 06 00 00  03 00 00 00  01 00 00
00    ................
0064: 01 00 00 00  04 00 00 00  01 00 00 00  00 00 00
00    ................
0080: 06 04 01 00  01 00 00 00  88 1F 00 00  02 00 00
00    ................
0096: 03 00 00 00  00 00 00 00  01 00 00 00  02 00 00
00    ................
0112: 07 04 00 00  01 00 00 00  88 1F 00 00  02 00 00
00    ................
0128: 03 00 00 00  02 00 00 00  01 00 00 00  00 00 00
00    ................
0144: 0D 00 00 00  04 00 00 00  07 04 00 00  01 00 00
00    ................
0160: 88 1F 00 00  02 00 00 00  03 00 00 00  02 00 00
00    ................
0176: 02 00 00 00  00 00 00 00  12 00 00 00  41 20 67
69    ............A gi
0192: 72 6C 20 6E  61 6D 65 64  20 4D 61 72  69 61 00
00    rl named Maria..


agentx_build: packet built okay

Sending 148 bytes to Local IPC: /var/agentx/master
0000: 01 0C 00 00  09 00 00 00  00 00 00 00  49 05 F4
0E    ............I.ô.
0016: 80 00 00 00  43 00 00 00  04 02 00 00  01 00 00
00    ....C...........
0032: 01 00 00 00  03 00 00 00  00 00 00 00  19 19 00
00    ................
0048: 06 00 00 00  06 06 00 00  03 00 00 00  01 00 00
00    ................
0064: 01 00 00 00  04 00 00 00  01 00 00 00  00 00 00
00    ................
0080: 06 04 01 00  01 00 00 00  88 1F 00 00  02 00 00
00    ................
0096: 03 00 00 00  00 00 00 00  01 00 00 00  02 00 00
00    ................
0112: 07 04 00 00  01 00 00 00  88 1F 00 00  02 00 00
00    ................
0128: 03 00 00 00  02 00 00 00  01 00 00 00  00 00 00
00    ................
0144: 27 00 00 00                                     
     '...


agentx_build: packet built okay

Sending 148 bytes to Local IPC: /var/agentx/master
0000: 01 0C 00 00  09 00 00 00  00 00 00 00  4A 05 F4
0E    ............J.ô.
0016: 80 00 00 00  43 00 00 00  04 02 00 00  01 00 00
00    ....C...........
0032: 01 00 00 00  03 00 00 00  00 00 00 00  19 19 00
00    ................
0048: 06 00 00 00  06 06 00 00  03 00 00 00  01 00 00
00    ................
0064: 01 00 00 00  04 00 00 00  01 00 00 00  00 00 00
00    ................
0080: 06 04 01 00  01 00 00 00  88 1F 00 00  02 00 00
00    ................
0096: 03 00 00 00  00 00 00 00  01 00 00 00  02 00 00
00    ................
0112: 07 04 00 00  01 00 00 00  88 1F 00 00  02 00 00
00    ................
0128: 03 00 00 00  02 00 00 00  01 00 00 00  00 00 00
00    ................
0144: 38 00 00 00                                     
     8...

 Strange how sub_agent has no error message... This
portion was from the end of the file which I suspect
is the point where it halted.

 Thanks and sorry for my delay.

> Dave

--
Salsa


                
__________________________________ 
Yahoo! Mail 
Stay connected, organized, and protected. Take the tour: 
http://tour.mail.yahoo.com/mailtour.html 



-------------------------------------------------------
This SF.Net email is sponsored by Yahoo.
Introducing Yahoo! Search Developer Network - Create apps using Yahoo!
Search APIs Find out how you can build Yahoo! directly into your own
Applications - visit http://developer.yahoo.net/?fr=offad-ysdn-ostg-q22005
_______________________________________________
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users

Reply via email to