|
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 when I write traphandle default /usr/test and a trap is caught by snmptrad there in NO OUTPUT from
my program. Previously I posted this problem when running Perl scripts and I
thought it was my installation but now I’ve seen that it’s because
my traphandler is not even being called. Could
somebody help? Here
is my previous post for reference: ===============================
One more question ======================================= I have installed net-SNMP 5.1.4 on a RHEL AS 3 system
with kernel version 2.4.24 and I can generate traps and also receive them in
the same machine through the loopback interface. Previously, I successfully
tested traptoemail in a Windows machine. I just had to install
ActiveState’s ActivePERL and everything worked fine. Now that I’m
testing on Linux I’ve found some problems. What I would like to know is
how to install Perl correctly. Here is what I typed during the installation: #
./configure --with-perl-modules
--enable-embedded-perl --enable-shared #
make #
make install # cd
perl #
perl Makefile.PL #
make #
make install 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
default usr/bin/perl /usr/local/bin/Hello And ran my test again
(forcing snmptrapd to use the recently created configuration file): #
snmptrapd -f –Lo –c /usr/local/etc/snmp/snmptrad.conf And I can see the trap in the
Terminal but no output from my Perl script. I have to mention that I
after a long time testing I ended up installing ActivePERL for Linux but
nothing got better. Could somebody help? Thanks in advance for your
time and attention. Regards, IB |
- traphandle does not work Irving Barría
- Re: traphandle does not work Alex Burger
- RE: traphandle does not work Irving Barría
- How to configure Net-SNMP listenning to port 1... Ba Duy Man Le
- Re: How to configure Net-SNMP listenning t... Wes Hardaker
