[Fixed][snmptrapd] traphandle called twice

[email protected]
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
Sorry for spamming :))

I've found the answer in the archives..

Ciao

Andre

Am 30.08.2005 um 15:39 Uhr haben Sie geschrieben:

> 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 = Timeticks: (1094643) 3:0 
> SNMPv2-MIB::snmpTrapOID.0 = OID:
> CISCO-CALL-TRACKER-MIB::cctCallSetupNotification   
> 2)
> SNMPv2-MIB::sysUpTime.0 = Timeticks: (1094675) 3:0 
> SNMPv2-MIB::snmpTrapOID.0 = OID:
> CISCO-CALL-TRACKER-MIB::cctCallTerminateNotification	 
> 3)
> SNMPv2-MIB::sysUpTime.0 = Timeticks: (1096163) 3:0 
> SNMPv2-MIB::snmpTrapOID.0 = OID:
> CISCO-CALL-TRACKER-MIB::cctCallSetupNotification   
> 4)
> SNMPv2-MIB::sysUpTime.0 = Timeticks: (1097627) 3:0 
> SNMPv2-MIB::snmpTrapOID.0 = OID:
> CISCO-CALL-TRACKER-MIB::cctCallTerminateNotification	 
> ---------------
> 
> 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üssen
> 
> 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
> [email protected]
> Please see the following page to unsubscribe or change other
> options:
> https://lists.sourceforge.net/lists/listinfo/net-snmp-users

Mit freundlichen Grüssen

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
[email protected]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.