-
Notifications
You must be signed in to change notification settings - Fork 66
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
Conversation
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.
few more changes needed
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 |
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.
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
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.
@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?
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.
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
No description provided.