Hi.

Have all your tests been with the same trap? If so, can you try a different trap such as a coldStart?

Try configuring snmpd on the machine with:

trapsink  127.0.0.1 public

and then restart snmpd.  You should get a coldStart trap.

Another thing to try is to DELETE your snmptrapd.conf file and re-create it from scratch. Probably unlikely but invisible escape codes have caused me problems many times (not necessarily with Net-SNMP).

Alex


[EMAIL PROTECTED] wrote:



HI Thomas,

I have some more information on the problem as I have been working on this
all day today. To anwser some of your questions first:

1) No this displays the same result

2) I have checked with ps  and the process is missing after I receive a
trap it dies

3) I have performed an strace and it seems as though it is getting a
SIGPIPE (Broken Pipe) signal

Here is some of the output of the following command:

 strace /usr/local/sbin/snmptrapd -n -Lo -f -On -C -c
/usr/local/share/snmp/snmptrapd.conf

close(7)                                = 0
munmap(0x40179000, 4096)                = 0
stat64("/usr/local/share/snmp/snmptrapd.conf", {st_mode=S_IFREG|0644,
st_size=865, ...}) = 0
open("/usr/local/share/snmp/snmptrapd.conf", O_RDONLY) = 7
fstat64(7, {st_mode=S_IFREG|0644, st_size=865, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) =
0x40179000
read(7, "################################"..., 4096) = 865
read(7, "", 4096)                       = 0
close(7)                                = 0
munmap(0x40179000, 4096)                = 0
gettimeofday({1098825239, 92336}, NULL) = 0
time(NULL)                              = 1098825239
gettimeofday({1098825239, 92732}, NULL) = 0
time([1098825239])                      = 1098825239
open("/etc/localtime", O_RDONLY)        = 7
fstat64(7, {st_mode=S_IFREG|0644, st_size=1267, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) =
0x40179000
read(7, "TZif\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\4\0\0\0\4\0"..., 4096)
= 1267
brk(0x8081000)                          = 0x8081000
close(7)                                = 0
munmap(0x40179000, 4096)                = 0
fstat64(1, {st_mode=S_IFCHR|0620, st_rdev=makedev(136, 0), ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) =
0x40179000
write(1, "2004-10-26 17:13:59 NET-SNMP ver"..., 522004-10-26 17:13:59
NET-SNMP version 5.1.2 Started.
) = 52
socket(PF_INET, SOCK_DGRAM, IPPROTO_IP) = 7
setsockopt(7, SOL_SOCKET, SO_BSDCOMPAT, [1], 4) = 0
setsockopt(7, SOL_SOCKET, SO_SNDBUF, [131072], 4) = 0
setsockopt(7, SOL_SOCKET, SO_RCVBUF, [131072], 4) = 0
bind(7, {sin_family=AF_INET, sin_port=htons(162),
sin_addr=inet_addr("0.0.0.0")}}, 16) = 0
rt_sigaction(SIGTERM, {0x804a0e0, [TERM], SA_RESTART|0x4000000}, {SIG_DFL},
8) = 0
rt_sigaction(SIGHUP, {0x804a0f0, [HUP], SA_RESTART|0x4000000}, {SIG_DFL},
8) = 0
rt_sigaction(SIGINT, {0x804a0e0, [INT], SA_RESTART|0x4000000}, {SIG_DFL},
8) = 0
gettimeofday({1098825239, 97728}, NULL) = 0
gettimeofday({1098825239, 97967}, NULL) = 0
select(8, [3 5 7], NULL, NULL, {5, 0})  = 1 (in [7], left {2, 380000})
gettimeofday({1098825241, 718218}, NULL) = 0
brk(0x8092000)                          = 0x8092000
recvfrom(7, "[EMAIL PROTECTED]"...,
65536, 0, {sin_family=AF_INET, sin_port=htons(161),
sin_addr=inet_addr("172.24.3.50")}}, [16]) = 143
time([1098825241])                      = 1098825241
write(1, "2004-10-26 17:14:01 172.24.3.50("..., 2992004-10-26 17:14:01
172.24.3.50(via 172.24.3.50) TRAP, SNMP v1, community public
        .1.3.6.1.4.1.89.35.1 Enterprise Specific Trap (3) Uptime: 11 days,
6:49:43.57
        .1.3.6.1.4.1.89.2.3.1.0 = STRING: "Illegal Load Report received
from unknown server 213. 62.194. 80"    .1.3.6.1.4.1.89.2.3.2.0 = INTEGER:
2
) = 299
pipe([8, 9])                            = 0
pipe([10, 11])                          = 0
fork()                                  = 1469
--- SIGCHLD (Child exited) ---
close(8)                                = 0
close(11)                               = 0
write(9, "172.24.3.50\n172.24.3.50\n.1.3.6.1"..., 287) = -1 EPIPE (Broken
pipe)
--- SIGPIPE (Broken pipe) ---
+++ killed by SIGPIPE +++

- I have tried running this on Fedora Core 2 with the exact same results :(

Thanks very much for your response!

-Steph



|---------+------------------------------------------>
|         |           Thomas Anders                  |
|         |           <[EMAIL PROTECTED]>  |
|         |           Sent by:                       |
|         |           [EMAIL PROTECTED]|
|         |           ceforge.net                    |
|         |                                          |
|         |                                          |
|         |           10/26/2004 04:57 PM            |
|         |                                          |
|---------+------------------------------------------>
  
>------------------------------------------------------------------------------------------------------------------------|
  |                                                                                    
                                    |
  |       To:       [EMAIL PROTECTED]                                                  
                 |
  |       cc:                                                                          
                                    |
  |       Subject:  Re: snmptrapd traphandle problem please help                       
                                    |
  
>------------------------------------------------------------------------------------------------------------------------|




[EMAIL PROTECTED] wrote:

I was using net-snmp 5.1.1 but then prayed and hoped that if I compiled

and

installed 5.1.2 the problem would go away, so now I am using net-snmp

5.1.2

and still having this problem.


Do you have the chance to check if you also see this problem with
5.2.rc1?

Also, a few other ideas:
- Does
     env SNMPCONFPATH=/usr/local/share/snmp \
     /usr/local/sbin/snmptrapd -Lo -f -Dall -On
   work any better for you?
- Have you double-checked (with ps or pgrep) that snmptrapd
   has really exited?
- You may want to run snmptrapd under a debugger to see where/why
   it exits


+Thomas

--
Thomas Anders <thomas.anders at blue-cable.de>


------------------------------------------------------- This SF.Net email is sponsored by: Sybase ASE Linux Express Edition - download now for FREE LinuxWorld Reader's Choice Award Winner for best database on Linux. http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click _______________________________________________ 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




< END >


----------------------------------------- The information contained in this email message is intended only for use of the individual or entity named above. If the reader of this message is not the intended recipient, or the employee or agent responsible to deliver it to the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please immediately notify us by email ([EMAIL PROTECTED]), and destroy the original message. Thank you



-------------------------------------------------------
This SF.Net email is sponsored by:
Sybase ASE Linux Express Edition - download now for FREE
LinuxWorld Reader's Choice Award Winner for best database on Linux.
http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click
_______________________________________________
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: Sybase ASE Linux Express Edition - download now for FREE LinuxWorld Reader's Choice Award Winner for best database on Linux. http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click _______________________________________________ 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