unable to catch traps with a script

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 ...


Go Back   Usenet Forums > Networking and Network Related > SNMP Users

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 03-15-2006
Folkert van Heusden
 
Posts: n/a
Default unable to catch traps with a script

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
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 03:32 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0