-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
in_snmp: an input plugin for collect metrics by SNMP request #7671
base: master
Are you sure you want to change the base?
Conversation
869e75c
to
eb87261
Compare
I have found a leak in the code, and it can be resolved by applying this patch: net-snmp/net-snmp@4bd0d9a. However, I am unsure about the process of incorporating this fix into the fluent-bit project. Any suggestions or guidance on this matter would be greatly appreciated! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've triggered a full build of all targets to confirm it builds for them, we probably need to modify dependencies to build.
Can you confirm it works for non-Linux targets as well? It may build but that doesn't mean it works...
@@ -191,6 +192,7 @@ option(FLB_IN_HEAD "Enable Head input plugin" | |||
option(FLB_IN_PROC "Enable Process input plugin" Yes) | |||
option(FLB_IN_SYSTEMD "Enable Systemd input plugin" Yes) | |||
option(FLB_IN_DUMMY "Enable Dummy input plugin" Yes) | |||
option(FLB_IN_SNMP "Enable SNMP input plugin" Yes) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
To confirm - does this work on Windows and macOS as well? It will need disabling if not in their specific override cmake/ files.
@@ -53,6 +53,7 @@ RUN echo "deb http://deb.debian.org/debian bullseye-backports main" >> /etc/apt/ | |||
flex \ | |||
bison \ | |||
libyaml-dev \ | |||
libsnmp-dev \ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We presumably will also need this in the various package builds under packaging/distros
too.
@patrick-stephens thanks, I will try to build and run on Windows device |
eb87261
to
02ae8c0
Compare
02ae8c0
to
63597e4
Compare
63597e4
to
3b06b2d
Compare
Add: ChatGPT in_snmp Add: snmp get with fix request Add: snmp with log recorder Add: print value by sprint_realloc_by_type Fix: refine code. Add: walk get values TMP Signed-off-by: k402xxxcenxxx <[email protected]>
Add: unit test for snmp_walk Signed-off-by: k402xxxcenxxx <[email protected]>
Signed-off-by: k402xxxcenxxx <[email protected]>
Signed-off-by: k402xxxcenxxx <[email protected]>
Signed-off-by: k402xxxcenxxx <[email protected]>
Signed-off-by: k402xxxcenxxx <[email protected]>
265dab6
to
1c78626
Compare
I still fail to build it on Windows, so I choose to disable it in https://github.com/fluent/fluent-bit/blob/master/cmake/windows-setup.cmake. |
This PR is stale because it has been open 45 days with no activity. Remove stale label or comment or this will be closed in 10 days. |
Enter
[N/A]
in the box, if an item is not applicable to your change.Testing
Before we can approve your change; please submit the following in a comment:
There is one leak and can be fixed after this patch is release: net-snmp/net-snmp@4bd0d9a
If this is a change to packaging of containers or native binaries then please confirm it works for all targets.
ok-package-test
label to test for all targets (requires maintainer to do).Documentation
fluent/fluent-bit-docs#1162
Backporting
Fluent Bit is licensed under Apache 2.0, by submitting this pull request I understand that this code will be released under the terms of that license.