problem with snmptraphandle

Войнович Андрей Александрович <[email protected]>
Newsgroups gmane.network.net-snmp.user
Organization ООО Геркон
Message-ID <[email protected]>
Hello
I want to run a script when receiving specific TRAP.
I wrote in the snmptrapd.conf:
	traphandle .1.3.6.1.4.1.171.10.61.2.1.3.1.6.*   /etc/snmp/down


down is a simple script:
	echo 'Interface Link Down!!!' >> /tmp/snmptrap.test.log

when i remove and insert cabel from port on my device i see in TRAP log the 
following:
	netsnmp_assert !"registration != duplicate" failed agent_registry.c:535 
netsnmp_subtree_load()
netsnmp_assert !"registration != duplicate" failed agent_registry.c:535 
netsnmp_subtree_load()
netsnmp_assert !"registration != duplicate" failed agent_registry.c:535 
netsnmp_subtree_load()
NET-SNMP version 5.4.1
2007-11-07 11:43:44 10.9.3.251(via UDP: [10.9.3.251]:1024) TRAP, SNMP v1, 
community public
        SNMPv2-SMI::enterprises.171.10.61.2 Link Down Trap (0) Uptime: 
1:10:10.03
        IF-MIB::ifIndex.8 = INTEGER: 8  
SNMPv2-SMI::enterprises.171.10.61.2.5.3.0 = STRING: "Port 8 copper link down"
2007-11-07 11:43:48 10.9.3.251(via UDP: [10.9.3.251]:1024) TRAP, SNMP v1, 
community public
        SNMPv2-SMI::enterprises.171.10.61.2 Link Up Trap (0) Uptime: 
1:10:14.36
        IF-MIB::ifIndex.8 = INTEGER: 8  
SNMPv2-SMI::enterprises.171.10.61.2.5.4.0 = STRING: "Port 8 copper link up"

but script doesnt run.
What do i do incorrect?

Yourth faithfully,
Andrey

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.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
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.