Re: traphandle does not work
Alex Burger <[email protected]>
| Newsgroups | gmane.network.net-snmp.user |
|---|---|
| Message-ID | <[email protected]> |
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 default usr/bin/perl /usr/local/bin/Hello Snmptrapd will not pass the output of the program you called to the screen so you will not see the 'This is a test' message. Try this instead: #!/usr/local/bin/perl open FILE, ">/tmp/traphandle.out"; print FILE "This is a test"; close FILE; Alex ------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ 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