我目前有一个脚本,用于侦听电子邮件/系统日志/和 SNMP v1 的传入流量,我希望为 SNMP v3 添加功能,但 ruby SNMP 库不包含 v3 支持。
我更喜欢它是一个 ruby 唯一的解决方案,因为这个工具将被其他人使用,如果我可以避免的话,我不想要求他们安装类似 net-snmp 的东西。
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