unable to catch traps with a script
Folkert van Heusden <[email protected]>
| Newsgroups | gmane.network.net-snmp.user |
|---|---|
| Organization | www.unixexpert.nl |
| Message-ID | <[email protected]> |
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=lnk&kid=110944&bid=241720&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