FW: Regarding snmptraps
"G A, Pramodh (NSN - IN/Bangalore)" <[email protected]>
| Newsgroups | gmane.network.net-snmp.user |
|---|---|
| Message-ID | <[email protected]> |
> Hello. > > I am configuring snmpdtrap.conf to get the logs in file and > execute the trap handler for perticular oid. > the configuration is as below. > > # Example configuration file for snmptrapd > # > # No traps are handled by default, you must edit this > file! > authCommunity log public > logOption -f /root/tsp_traps_99 > traphandle TRAP-TEST-MIB::demotraps /bin/sh > /root/test123 > > I am executing the following the comand to generate the trap. > snmptrap -v 1 -c public 127.0.0.1:162 > TRAP-TEST-MIB::demotraps localhost 6 17 '' SNMPv2-MIB::sysLocation.0 s > "Ryan was just here" > > I am able to get the trap using following command in stdout > using below commnd. > snmptrapd -f -Le -C -c /etc/snmp/snmptrapd.conf > Unknown logging option passed to -L: -. > NET-SNMP version 5.5 > 2011-09-19 23:27:52 localhost [127.0.0.1] (via > UDP: [127.0.0.1]:55076->[127.0.0.1]) TRAP, SNMP v1, community public > TRAP-TEST-MIB::demotraps Enterprise Specific > Trap (TRAP-TEST-MIB::demo-trap) Uptime: 9 days, 6:34:58.41 > SNMPv2-MIB::sysLocation.0 = STRING: Ryan was > just here > 2011-09-19 23:27:52 localhost [127.0.0.1] (via > UDP: [127.0.0.1]:36870->[127.0.0.1]) TRAP, SNMP v1, community public > TRAP-TEST-MIB::demotraps Enterprise Specific > Trap (TRAP-TEST-MIB::demo-trap) Uptime: 9 days, 6:34:58.85 > SNMPv2-MIB::sysLocation.0 = STRING: Ryan was > just here > 2011-09-19 23:27:53 localhost [127.0.0.1] (via > UDP: [127.0.0.1]:36673->[127.0.0.1]) TRAP, SNMP v1, community public > TRAP-TEST-MIB::demotraps Enterprise Specific > Trap (TRAP-TEST-MIB::demo-trap) Uptime: 9 days, 6:34:59.50 > SNMPv2-MIB::sysLocation.0 = STRING: Ryan was > just here > > > As per the snmptrapd.conf file the log file should be created > and it should contain traps. > the log file specified in conf file /root/tsp_traps_99 is not > getting created. > > The traphandler is not at all executed on receiving the > TRAP-TEST-MIB::demotraps trap. > > can please help in resloving the logfile and traphandler > problem. Thanks in advance. > > > Thanks > Pramodh > ------------------------------------------------------------------------------ All the data continuously generated in your IT infrastructure contains a definitive record of customers, application performance, security threats, fraudulent activity and more. Splunk takes this data and makes sense of it. Business sense. IT sense. Common sense. http://p.sf.net/sfu/splunk-d2dcopy1 _______________________________________________ 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