snmptrapd traphandler called twice?

Torben Surmer <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
Hi,

I want to execute a command, when a trap is received, so I added the snmptrapd.conf file like this and like it is describe in the tutorial:

[snmptrapd.conf]
>>>
traphandle SNMP2-MIB::coldStart    /home/torben/sysSRV/trunk/bin/traps
<<<

When I now restart the netsnmp-agent on my windows machine, the ONE coldstart trap is send, but it looks like the "traps" command is beeing called twice?!

Does anybody know, why the traps script is called twice?



I copied the traps script from the tutorial, it is:

[/home/torben/sysSRV/trunk/bin/traps]
>>>
 #!/bin/sh

 read host
 read ip
 vars=

 while read oid val
 do
   if [ "$vars" = "" ]
   then
     vars="$oid = $val"
   else
     vars="$vars, $oid = $val"
   fi
 done

 echo trap: $1 $host $ip $vars
<<<
 



 		 	   		  
_________________________________________________________________
Hotmail: Trusted email with Microsoft’s powerful SPAM protection.
https://signup.live.com/signup.aspx?id=60969

------------------------------------------------------------------------------
SOLARIS 10 is the OS for Data Centers - provides features such as DTrace,
Predictive Self Healing and Award Winning ZFS. Get Solaris 10 NOW
http://p.sf.net/sfu/solaris-dev2dev

_______________________________________________
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.