TrapHandle - Fork & Inform Ack

<[email protected]>
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
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.