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

add sensor support for cefcModuleOperStatus #15026

Merged
merged 10 commits into from May 24, 2023

Conversation

d-k-7
Copy link
Contributor

@d-k-7 d-k-7 commented May 5, 2023

This PR adds state sensor support for linecard operating status for Cisco switches using the cefcModuleOperStatus OID

image

DO NOT DELETE THE UNDERLYING TEXT

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.

@Jellyfrog Jellyfrog closed this May 12, 2023
@Jellyfrog Jellyfrog reopened this May 12, 2023
@Jellyfrog Jellyfrog added the Device 🖥️ New or added device support label May 21, 2023
@Jellyfrog
Copy link
Member

Could this be implemented in yaml instead? We try to only use php if it needs more advanced parsing

@d-k-7
Copy link
Contributor Author

d-k-7 commented May 24, 2023

Could this be implemented in yaml instead? We try to only use php if it needs more advanced parsing

@Jellyfrog I implemented this in yaml rather than php. I also added the sensors to a group to help improve readability.

image

@Jellyfrog Jellyfrog merged commit dd3ed41 into librenms:master May 24, 2023
8 checks passed
@d-k-7 d-k-7 deleted the add-sensors-for-cefcModuleOperStatus branch May 24, 2023 19:59
@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-6-0-changelog/21693/1

TheMysteriousX pushed a commit to TheMysteriousX/librenms that referenced this pull request Aug 9, 2023
* add sensor support for cefcModuleOperStatus

* add tests for cefcModuleOperStatus

* revert sensors/state/cisco.inc.php

* add sensor support for cefcModuleOperStatus using yaml

* update tests for cefcModuleOperStatus

* try adding tests again for cefcModuleOperStatus

* include CISCO-ENTITY-FRU-CONTROL mib for cefcModuleOperStatus sensor state discovery
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Device 🖥️ New or added device support
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants