From: SourceForge.net <no...@so...> - 2004-04-26 09:47:20
|
Bugs item #938819, was opened at 2004-04-20 12:54 Message generated for change (Comment added) made by nobody You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=112694&aid=938819&group_id=12694 Category: apps Group: None Status: Open Resolution: None Priority: 5 Submitted By: doug at kent (dwestfal5757) Assigned to: Nobody/Anonymous (nobody) Summary: snmptrapd traphandle info incomplete Initial Comment: Package:net-snmp 5.1.1 (via cvs Apr 20, 2004 13:00) OS: Linux 2.4.20-8 #1 i686 i686 i386 GNU/Linux (RedHat 9) --- Problem: Information passed via a traphandle directive in snmptrapd.conf does not include all -F (formatted output) to receiving handler program. ie: no trap type or trap subtype information, other formatted info, etc. --- Partial Contents of /etc/rd.d/init.d/snmptrapd: daemon /usr/local/sbin/snmptrapd -C -c /usr/local/share/snmp/snmptrapd.conf -n -OeuQaX -Lf /var/log/snmptrapd.log -p /var/run/snmptrapd.pid --- Contents of /usr/local/share/snmp/snmptrapd.conf: format1 %02.2h:%02.2j TRAP%w.%q %W %a %v format2 %02.2h:%02.2j TRAP%w.%q %W %a %v traphandle default /home/watchdog/sh-snmptrapd --- Contents of /home/watchdog/sh-snmptrapd #!/bin/sh vars= while read ip do vars="$vars $ip" done echo "`exec date` /home/watchdog/sql-snmptrapd $vars" >> /var/log/test.log --- ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2004-04-26 02:47 Message: Logged In: NO There's probably a better way but you can change the default by editing the EXECUTE_FORMAT string in apps/snmptrapd_handlers.c (and recompile) ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=112694&aid=938819&group_id=12694 |