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

Adding OIDs for WLC and Cisco Switches #755

Merged
merged 12 commits into from
Mar 4, 2024
Merged

Conversation

aditdeshpande10
Copy link
Contributor

No description provided.

@aditdeshpande10 aditdeshpande10 mentioned this pull request Feb 22, 2024
Closed
Copy link
Contributor

@thezackm thezackm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

few more changes needed

profiles/kentik_snmp/cisco/cisco-all-devices.yml Outdated Show resolved Hide resolved
conversion: milliwatts to watts
- name: cpeExtMainPseRemainingPower # This object indicates remaining power expressed in miliwatts, this parameter is calculated as pethMainPsePower minus cpeExtMainPseUsedPower
OID: 1.3.6.1.4.1.9.9.402.1.3.1.5
conversion: milliwatts to watts
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is not a valid conversion; redact this line and you can do the conversion on the raw data once it's shipped to the target sink

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@thezackm I've removed the conversion lines. Are any other changes required in this file? Also, wondering if it's possible to get a percentage of power used or available using these OIDs?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

generally speaking you'd do the math at query time, you'd need to pull either used or available as well as total.

i.e.; you could do something like this to get a percentage, assuming you are also collecting a metric indicating the total power available:

( ( totalPower - remainingPower ) / totalPower ) * 100

profiles/kentik_snmp/cisco/cisco-wlc.yml Show resolved Hide resolved
profiles/kentik_snmp/cisco/cisco-wlc.yml Show resolved Hide resolved
@thezackm thezackm merged commit c2f2a2f into kentik:main Mar 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants