TrapHandle - Fork & Inform Ack
| Newsgroups | gmane.network.net-snmp.user |
|---|---|
| Message-ID | <[email protected]> |
Hi, I am using snmptrapd to receive informs. I noticed that snmptrapd sends Inform Ack only when the 'traphandle' (specified in snmptrapd.conf) finishes the job. Is this behavior correct? I am trying to make sure that Ack is sent 'before' my traphandle process the inform-request. In my case traphandle is a unix shell script. To make sure ack is sent first I tried running my traphandle in background , even tried exec(ing)! This does not seems work for me. Can any please give any suggestions to get it working !! --- snmptrapd.conf --- traphandle default /tmp/trapHandle.sh --- snmptrapd.conf --- --- trapHandle.sh --- #!/bin/sh # do something something exec myprogram & # also tried myprogram & exit 0 --- trapHandle.sh --- thanks chinmaya