This is a discussion on [snmptrapd] traphandle called twice within the SNMP Users forums, part of the Networking and Network Related category; Hello all, I'm using snmptrapd for getting some snmp-inform messages from a Cisco router. The daemon calls a ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
Hello all,
I'm using snmptrapd for getting some snmp-inform messages from a Cisco router. The daemon calls a perl script. That works fine for me, but the daemon calls that traphandle twice for one inform message.;( The Cisco router send four messages(for one run!), and I need to handle only two informs. So I write the following to my /etc/snmptrad.conf: #---------- traphandle CISCO-CALL-TRACKER-MIB::cctCallTerminateNotification /usr/bin/perl /home/voodoo/perl/inform_handler.pl terminate #---------- I've only one traphandle in my conf... Here is a kpl. run from that router, I get this from /var/log/snmptrapd.log: ------------------------ 2005-08-30 NET-SNMP version 5.2.1 Started. 1) SNMPv2-MIB::sysUpTime.0 =3D Timeticks: (1094643) 3:0=20 SNMPv2-MIB::snmpTrapOID.0 =3D OID: CISCO-CALL-TRACKER-MIB::cctCallSetupNotification=20=20=20 2) SNMPv2-MIB::sysUpTime.0 =3D Timeticks: (1094675) 3:0=20 SNMPv2-MIB::snmpTrapOID.0 =3D OID: CISCO-CALL-TRACKER-MIB::cctCallTerminateNotification=20=20=20 3) SNMPv2-MIB::sysUpTime.0 =3D Timeticks: (1096163) 3:0=20 SNMPv2-MIB::snmpTrapOID.0 =3D OID: CISCO-CALL-TRACKER-MIB::cctCallSetupNotification=20=20=20 4) SNMPv2-MIB::sysUpTime.0 =3D Timeticks: (1097627) 3:0=20 SNMPv2-MIB::snmpTrapOID.0 =3D OID: CISCO-CALL-TRACKER-MIB::cctCallTerminateNotification=20=20=20 --------------- I got two messages with cctCallTerminateNotification and two messages with cctCallSetupNotification. Shouldn't call snmptrapd the traphandle only twice? For this run the snmptrapd calls my handle four times;(( Can somone tell me why? Any hints? Greetings andre Mit freundlichen Gr=FCssen Andre Heine ------------------------------------------------------- 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 Net-snmp-users@lists.sourceforge.net Please see the following page to unsubscribe or change other options: https://lists.sourceforge.net/lists/...net-snmp-users |