Skip to content
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

Set mibs explicitly in SnmpQuery #15199

Merged
merged 2 commits into from Aug 5, 2023
Merged

Conversation

murrant
Copy link
Member

@murrant murrant commented Aug 4, 2023

Always override system mibs, so we have consistency
New method to control mibs

Please note

Please read this information carefully. You can run ./lnms dev:check to check your code before submitting.

  • Have you followed our code guidelines?
  • If my Pull Request does some changes/fixes/enhancements in the WebUI, I have inserted a screenshot of it.
  • If my Pull Request makes discovery/polling/yaml changes, I have added/updated test data.

Testers

If you would like to test this pull request then please run: ./scripts/github-apply <pr_id>, i.e ./scripts/github-apply 5926
After you are done testing, you can remove the changes with ./scripts/github-remove. If there are schema changes, you can ask on discord how to revert.

Always override system mibs, so we have consistency
New method to control mibs
@murrant murrant added the Internal Features Features for developers label Aug 4, 2023
@Jellyfrog
Copy link
Member

I think this is a good idea. I remember we did some stupid tests around this. Iirc we had to set some env variable also to really clean it? Like MIBS

@murrant
Copy link
Member Author

murrant commented Aug 4, 2023

@Jellyfrog Yep, that informed this code :)
I found out if we want to replace some usages of the old methods, we will need to allow mib to be specified. So took the opportunity to work around the MIBs set oddly in system issue.

@murrant murrant added this to the 23.8.0 milestone Aug 4, 2023
@Jellyfrog Jellyfrog merged commit 9382959 into librenms:master Aug 5, 2023
8 checks passed
@murrant murrant deleted the snmpquery-mibs branch August 5, 2023 17:03
TheMysteriousX pushed a commit to TheMysteriousX/librenms that referenced this pull request Aug 9, 2023
* Set mibs explicitly in SnmpQuery
Always override system mibs, so we have consistency
New method to control mibs

* Lint fixes
@librenms-bot
Copy link

This pull request has been mentioned on LibreNMS Community. There might be relevant details there:

https://community.librenms.org/t/23-8-0-changelog/22078/1

peejaychilds pushed a commit to peejaychilds/librenms that referenced this pull request Oct 26, 2023
* Set mibs explicitly in SnmpQuery
Always override system mibs, so we have consistency
New method to control mibs

* Lint fixes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Internal Features Features for developers
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants