Can anyone kindly help me on this issue?

I'm using Core13 for Zabbix 1.8.2, and trying snmptrap works on Zabbix.

However, every time snmptrapd gets a snmp notification, it aborts. With debug 
mode, it reports a buffer overflow detected. I've tried another Fedora core 13 
and a core 12, with net-snmp 5.5. On these three systems, snmptrapd behaves the 
same.

Here is my snmptrapd.conf,

disableAuthorization yes
traphandle default mail -s trap some...@somewhere.com

I triggered snmptrapd with,
snmptrap -Ci -v 2c -c public localhost "" "1.3.6.1.4.1.8837.4.1.2.1.2.1.6.4" 
1.3.6.1.4.1.8837.4.1.2.1.2.1.6.4 int 500

Same result I got with my firewall snmp traps. Some other different scripts 
replaced in traphandle default, got the same. 

A small portion of debug info listed,

trace: run_shell_command(): mibgroup/utilities/execute.c, 55:
run_shell_command: running /home/zabbix/bin/test.sh
trace: run_shell_command(): mibgroup/utilities/execute.c, 56:
run:shell: running '/home/zabbix/bin/test.sh'
trace: netsnmp_ds_set_string(): default_store.c, 283:
netsnmp_ds_set_string: Setting LIB:15 = "/var/run/net-snmp/snmp-tmp-XXXXXX"
*** buffer overflow detected ***: /usr/sbin/snmptrapd terminated
======= Backtrace: =========
/lib/libc.so.6(__fortify_fail+0x4d)[0x10a1b5d]
/lib/libc.so.6(+0xf6bea)[0x109fbea]
/lib/libc.so.6(__strcpy_chk+0x44)[0x109eec4]
/usr/lib/libnetsnmp.so.20(netsnmp_mktemp+0x3a)[0x896afa]
/usr/lib/libnetsnmpagent.so.20(run_shell_command+0x3ad)[0x99035d]
/usr/lib/libnetsnmptrapd.so.20(command_handler+0x140)[0x6748c0]
/usr/lib/libnetsnmptrapd.so.20(snmp_input+0x33f)[0x6761af]
/usr/lib/libnetsnmp.so.20(+0x40527)[0x889527]
/usr/lib/libnetsnmp.so.20(_sess_read+0x171)[0x88a041]
/usr/lib/libnetsnmp.so.20(snmp_sess_read2+0x2a)[0x88b07a]
/usr/lib/libnetsnmp.so.20(snmp_read2+0x34)[0x88b144]
/usr/lib/libnetsnmp.so.20(snmp_read+0x48)[0x88b1a8]
/usr/sbin/snmptrapd(main+0xdaa)[0x845c1a]
/lib/libc.so.6(__libc_start_main+0xe6)[0xfbfc96]
/usr/sbin/snmptrapd(+0x24e1)[0x8444e1]
======= Memory map: ======== 

 

 

Hammer Lee



 

------------------------------------------------------------------------------
ThinkGeek and WIRED's GeekDad team up for the Ultimate 
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the 
lucky parental unit.  See the prize list and enter to win: 
http://p.sf.net/sfu/thinkgeek-promo
_______________________________________________
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