I am a little new to Traphandles. I have an agent that is successfully generating traps and sending them back to my snmp server (nagios) and it is logging them just fine.
The issue that I am having is that the snmptrapd is not calling our traphandles. At first I thought it was the syntax of the traphandle, so I put in the generic traphandle default /path/to/trap/handle just to get it to write a message to the screen to see that snmptrapd is calling the traphandle. Still, nothing is happening. I am not sure what is causing this or why. I don't know if the output of the traphandle is written to a log somewhere or if it is supposed to write to the screen (if I tell it to) or what. Below is my snmptrapd.conf file: ########################################################################### # # snmptrapd.conf # # - created by the snmpconf configuration program # ########################################################################### # SECTION: Output formatting for traps received. # # Output from snmptrapd is formatted according to the # rules defined by the formatting configuration directives. # format2: How SNMPv2 and SNMPv3 traps are formatted. # See the snmptrapd.conf manual page for format string details. # arguments: formatstring format2 "\n\n(1)HOST ADDRESS: %b\n(2)VARIABLE BINDINGS: %V\n\t%v\n" ########################################################################### # SECTION: Trap Handlers # # Here we define what programs are run when a trap is # received by the trap receiver. # traphandle: When traps are received, a program can be run. # When traps are received, the list of configured trap # handles is consulted and any configured program is run. # If no handler is found, any handler with "default" as the # traphandle type is run instead. The information contained # in trap is passed to the program via standard input (see # the snmptrapd.conf manual page for details). # # arguments: oid|"default" program args ########################################################################### traphandle default /usr/lib/nagios/plugins/eventhandlers/trap_test #traphandle SNMPv2-SMI::enterprises.11476.1.11.1 /usr/local/nagios/libexec/eventhandlers/trap_test #traphandle TELSEC2000-MIB::env-Major /usr/local/nagios/libexec/eventhandlers/trap_test -- ############################# ## Adam Roberts ## Cheyenne Uplink ## Echostar Satellite, LLC ############################# There are 10 kinds on people in this world. Those who understand binary and those who don't. ------------------------------------------------------- This SF.Net email is sponsored by OSTG. Have you noticed the changes on Linux.com, ITManagersJournal and NewsForge in the past few weeks? Now, one more big change to announce. We are now OSTG- Open Source Technology Group. Come see the changes on the new OSTG site. www.ostg.com _______________________________________________ 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
