Is it net-snmp's bug

李晓栋 <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
Hi!

  I use net-snmp(NET-SNMP version: 5.1.3.1) to monitor my linux/freebsd Server .In order to Test the trap function ,I wrote the below line in the snmpd.conf,then I restart the snmpd:
#####################################
 rouser trap

trapcommunity 1ghh-3gb
trap2sink 192.168.1.10

monitor -u trap -r 120 -o .1.3.6.1.2.1.2.2.1.2 "packet" .1.3.6.1.2.1.2.2.1.11 > 1
monitor -u trap -r 120 -o .1.3.6.1.2.1.2.2.1.2 "traffic" 1.3.6.1.2.1.2.2.1.10 > 1
####################################

On the other Server( 192.168.1.10) ,I run the command:
 /usr/local/net-snmp/sbin/snmptrapd -C -Lf /home/xiaodong/log

The I cat the log ,I found the log is not full.
[root@test xiaodong2]# cat log | grep 184.143
2005-09-04 17:00:56 test.test.com.cn [192.168.1.143]:
2005-09-04 17:02:56 test.test.com.cn [192.168.1.143]:
2005-09-04 17:02:56 test.test.com.cn [192.168.1.143]:
2005-09-04 17:02:56 test.test.com.cn [192.168.1.143]:
2005-09-04 17:02:56 test.test.com.cn [192.168.1.143]:
2005-09-04 17:02:56 test.test.com.cn [192.168.1.143]:
2005-09-04 17:02:56 test.test.com.cn [192.168.1.143]:
2005-09-04 17:02:56 test.test.com.cn [192.168.1.143]:
2005-09-04 17:02:56 test.test.com.cn [192.168.1.143]:
2005-09-04 17:14:56 test.test.com.cn [192.168.1.143]:
2005-09-04 17:14:56 test.test.com.cn [192.168.1.143]:
2005-09-04 17:14:56 test.test.com.cn [192.168.1.143]:
[root@test xiaodong2]# date
Sun Sep  4 17:31:06 CST 2005

 As You can see ,the record of trap of 17:04,17:06,17:08,17:10,17:12,17:16.... is not in the log file.
 Then I edit the snmpd.conf ,change "trap2sink 192.168.1.10" to "trap2sink 127.0.0.1" ,and run the snmptrapd from the localhost.But the result is the same.
  Then I test these on another Server,The thing is the same.
  The Operation System of the 2 server is : Red Hat 9 , FreeBSD 4.8p-STABLE 

  What is the reason of the strange result?why some trap record is not in the log file? 
  Is it the version (NET-SNMP version: 5.1.3.1)'s Bug ?
  So Sorry ,My English is poor.
  Best Wishes to You!

                                                                                                  Xiaodong Li




-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.