This is a discussion on unable to catch traps with a script within the SNMP Users forums, part of the Networking and Network Related category; Hi, In /etc/snmp/snmptrapd.conf I have this: traphandle default /usr/local/sbin/my_script where my_script is: #!/bin/sh ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
Hi,
In /etc/snmp/snmptrapd.conf I have this: traphandle default /usr/local/sbin/my_script where my_script is: #!/bin/sh echo $* >> /tmp/snmp.log Now if an event comes in, I only get empty lines(!) in my /tmp/snmp.log-file. What could be the cause of that? I use version "NET-SNMP Version: 5.1.2". Folkert van Heusden -- www.vanheusden.com/multitail - multitail is tail on steroids. multiple windows, filtering, coloring, anything you can think of ---------------------------------------------------------------------- Phone: +31-6-41278122, PGP-key: 1F28D8AE, www.vanheusden.com ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=...720&dat=121642 _______________________________________________ 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/...net-snmp-users |