Re: SNMPTRAP & traptoemail

"BENAMAR Khalid" <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>


>From: "Dave Shield" <[email protected]>
>To: "BENAMAR Khalid" <[email protected]>
>CC: [email protected]
>Subject: Re: SNMPTRAP & trapt
>Date: Wed, 8 Nov 2006 12:45:40 +0000
>
>On 07/11/06, BENAMAR Khalid <[email protected]> wrote:
>>this is the response when i launch snmptrapd
>     [snip]
>>snmptrapd: get_traphandler default (902d458)
>>snmptrapd: command_handler
>>snmptrapd: token = '/usr/local/bin/traptoemail -f [email protected]
>>     -s smtp.menara.ma [email protected]'
>>snmptrapd: execute format
>
>OK - so it is at least *trying* to run the traptoemail script.
>What happens if you run that same command by hand?
>
>You'll need to give it at least three lines of input.
>Try:
>     (echo localhost; echo 127.0.0.1; echo OID Value) |
>          /usr/local/bin/traptoemail -f [email protected]
>                        -s smtp.menara.ma [email protected]'

the response when i try it is

illegal trap at /usr/local/bin/traptoemail line 56, <STDIN> line 3



>
>(all on one line, obviously)
>
>Dave

_________________________________________________________________
MSN Hotmail : créez votre adresse e-mail gratuite & à vie ! 
http://www.msn.fr/newhotmail/Default.asp?Ath=f


-------------------------------------------------------------------------
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.