Hello Dave,
I think we are making progress here. Thomas had suggested that I replace my
traphandler script with /bin/cat to see if this would change the behavior
of snmptrapd when a trap comes in that is specified in the snmptrapd.conf
file. I'm happy to say that this did work the traps came in uninterrupted
(No Broken Pipe) when I had my snmptrapd.conf look like this:
traphandle .1.3.6.1.4.1.89.35.1.0.3 /bin/cat
I had also before tried something similar using the following
snmptrapd.conf:
traphandle .1.3.6.1.4.1.89.35.1.0.3 /bin/eject
which was also working but I didn't want to explain to the list that I had
rigged a notification method that would eject the cd-rom tray on my server
everytime my trap came in!
My confusion is now on how to utilize the var binds that snmptrapd is
passing to my trpahandler in my script? Do I have to use all of them? is it
enough to just read them in and echo them back out?
Thomas,
I will try to install and test 5.2.rc1 today and let you know my results.
Thank you
-Steph
|---------+------------------------------------------>
| | Dave Shield |
| | <[EMAIL PROTECTED]> |
| | Sent by: |
| | [EMAIL PROTECTED]|
| | ceforge.net |
| | |
| | |
| | 10/27/2004 04:51 AM |
| | |
|---------+------------------------------------------>
>------------------------------------------------------------------------------------------------------------------------|
|
|
| To: Stephanos Kotsakis/NY/WGM/[EMAIL PROTECTED]
|
| cc: [EMAIL PROTECTED]
|
| Subject: Re: snmptrapd traphandle problem please help
|
>------------------------------------------------------------------------------------------------------------------------|
> I am having a problem I just can not figure out with snmptrapd. I simply
> wrote traphandler script to echo Hello World out to the screen when a
> certain trap is detected.
Is that *all* that the trap handler does?
Does it try to read the list of trap varbinds which 'snmptrapd'
will pass to it?
I have a feeling that the traphandler doesn't cope very well
with a handler script that doesn't read these values in.
It certainly doesn't like it if the trap handler script isn't
there at all (see bug #884868), and I wouldn't be surprised if
a non-reading trap handler was similar.
Dave
-------------------------------------------------------
This SF.Net email is sponsored by:
Sybase ASE Linux Express Edition - download now for FREE
LinuxWorld Reader's Choice Award Winner for best database on Linux.
http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click
_______________________________________________
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
< END >
-----------------------------------------
The information contained in this email message is intended only for use of
the individual or entity named above. If the reader of this message is not
the intended recipient, or the employee or agent responsible to deliver it
to the intended recipient, you are hereby notified that any dissemination,
distribution or copying of this communication is strictly prohibited. If
you have received this communication in error, please immediately notify us
by email ([EMAIL PROTECTED]), and destroy the original message. Thank you
-------------------------------------------------------
This SF.Net email is sponsored by:
Sybase ASE Linux Express Edition - download now for FREE
LinuxWorld Reader's Choice Award Winner for best database on Linux.
http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click
_______________________________________________
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