Re: traphandler does not work

Dave Shield <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
On Tue, 2005-10-04 at 16:55 +0200, Holger Krämer wrote:
> Dave Shield wrote:
> >What about  the  -Drun  output?
> >Which version of snmptrapd are you using?


> The -Drun output simply shows the incoming traps, nothing
> about the handler or anything that is helpful

But is the -Drun output prefixed by "run:shell" or
"run:exec" ?   That *is* useful information
(which is why I asked for it! :-))

> I use version 5.1.2., recommanded for stable Debians

Checking the source, the 5.1.x line seems to use
"run_exec_command" to execute trap handlers,
while the 5.2.x line uses "run_shell_command".

The most significant difference lies in the handling
of shell-builtins (like "echo" and output redirection).
As in:
   run_shell_command  takes note of these,
   run_exec_command doesn't.


I'm a little more confused as to why the touch command
didn't work, but it might be worth trying with:

   a)  the 5.2.1 version of snmptrapd,
or
   b)  a binary command (*not* a shell script)
           as the trap handler.


Dave


-------------------------------------------------------
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
_______________________________________________
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.