| Summary: | [RFE] Enable native MySQL server support for net-snmp. | ||||||
|---|---|---|---|---|---|---|---|
| Product: | Red Hat Enterprise Linux 6 | Reporter: | Travis Gummels <tgummels> | ||||
| Component: | net-snmp | Assignee: | Jan Safranek <jsafrane> | ||||
| Status: | CLOSED WONTFIX | QA Contact: | BaseOS QE Security Team <qe-baseos-security> | ||||
| Severity: | medium | Docs Contact: | |||||
| Priority: | medium | ||||||
| Version: | 6.2 | CC: | jwest | ||||
| Target Milestone: | rc | Keywords: | FutureFeature | ||||
| Target Release: | --- | ||||||
| Hardware: | x86_64 | ||||||
| OS: | Linux | ||||||
| Whiteboard: | |||||||
| Fixed In Version: | Doc Type: | Enhancement | |||||
| Doc Text: | Story Points: | --- | |||||
| Clone Of: | Environment: | ||||||
| Last Closed: | 2011-06-16 02:31:45 UTC | Type: | --- | ||||
| Regression: | --- | Mount Type: | --- | ||||
| Documentation: | --- | CRM: | |||||
| Verified Versions: | Category: | --- | |||||
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||
| Cloudforms Team: | --- | Target Upstream Version: | |||||
| Attachments: |
|
||||||
|
Description
Travis Gummels
2011-02-14 21:59:44 UTC
Created attachment 478721 [details]
Patch to net-snmp spec file to enable native mysql support.
It sounds reasonable. While mysql-libs are quite huge, they won't pull large dependencies. I'll enable MySQL in Fedora and if I don't get significant complaints, I'll add it to RHEL 6 as well. (In reply to comment #0) > Having the snmptrapd > natively insert trap messages has some advantages: > > 1) The code responsible for getting traps to the database is maintained by the > net-snmp developers. This saves us developer time. > > 2) It's written in C as part of the daemon. This allows for more efficient use > of hardware resources, since an external program will not be forked and > executed. > > 3) It's non-blocking, and as such, there is less of a chance that traps will > be missed. On second thought, all of above can be easily achieved in embedded perl. Open MySQL connection on snmptrapd startup and register a trap handler which stores the trap in the database. It requires the customer to write all this code, but it looks to me simple enough and few lines in perl could do it... See http://search.cpan.org/~hardaker/NetSNMP-TrapReceiver-5.0401/TrapReceiver.pm The perl is executed internally in snmptrapd (=no forking), it can be reasonably fast (low chance of missing something), but it keeps the maintenance costs on the customer. |