On 27/07/07, Mateus Interciso <[EMAIL PROTECTED]> wrote:
> [the agent] sucessfully send the trap, as it shows on the snmptrapd.log

   [snip]


> But I also want it to execute the command /bin/sh /tmp/trapTst.sh

On which system?
The host where the agent is running (10.0.0.1), or the host that
is running the trap receiver (10.0.0.4) ?


> Here's my snmptrapd.conf file on 10.0.0.1

I thought you said that snmptrapd was running on 10.0.0.4?
That's certainly the address you seem to have in your snmpd.conf file.

The snmptrapd.conf file will only be processed by snmptrapd,
and hence is only needed on the system where traps are received.
It's not relevant on the system where the agent is running, where
traps are sent *from*.
  (Unless these are both the same box, of course).


Instead of sending traps, have a look at the 'setEvent' directive,
to handle everything on the 10.0.0.1 system.


Dave

-------------------------------------------------------------------------
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
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users

Reply via email to