开发者

How do you handle SNMP v3 Traps in Ruby?

I currently have a script that listens for incoming traffic for e-mail / syslog / and SNMP v1, I'm looking to add functionality for SNMP v3 but the ruby SNMP library doesn't include v3 support.

I prefer it to be a ruby开发者_开发问答 only solution because this tool will be used by others and I don't want to require them to install something like net-snmp if I can avoid it.


You've got a nice open source product called NET-SNMP (ex UCD-SNMP). This product is compiled for Linux-like and Windows. Inside this product you've got a daemon (service) called snmptrapd. snmptrapd is able to receive any SNMP trap (v1, v2c, V3). Around that, you will find SNMP Trap Translator. It's used to 'translate' traps received from the NET-SNMP / UCD-SNMP snmptrapd trap daemon into easy to understand messages. This tool is writen in PERL.

Another information, V3 traps and informs (aknowledged traps) are exacly the same as V2 traps and informs.

I hope it helps.

JP

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜