Thank you Alex!
I had done
the same thing (writing to a file) in C but it did not work until I wrote the
following in my snmptrapd.conf:
traphandle “default” /usr/local/bin/test
Note the quotation
marks around the word default. It
seems that I was lucky when I found it out be
Irving Barría wrote:
I don’t know why traptoemail (neither any other Perl script) does not
work! For testing, I wrote a very simple Perl program like this:
#!/usr/local/bin/perl
print "This is a test";
And modified my snmptrapd.conf (located at /usr/local/etc/snmp) as follows:
traphandle de
Hi
all!
Thank
you so much Jeff for your prompt reply, it was very useful.
Now
I have this other problem: I used traphandle to call a simple program
(of those that just say “Hello Worl”)
called test and located at /usr, compiled using gcc. It runs perfectly from
the command line but