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

Removed broken POE graphing code #10188

Merged
merged 3 commits into from May 29, 2019
Merged

Removed broken POE graphing code #10188

merged 3 commits into from May 29, 2019

Conversation

PipoCanaja
Copy link
Contributor

@PipoCanaja PipoCanaja commented May 4, 2019

Hello

Currently, there is no way to poll POE values and graph them with standard MIB. The only standard info we can get is "do we have POE available and active" but this information is not used in LibreNMS so far.
The removed code did use some specific Cisco MIBS for the values, which obviously do not return any value for non Cisco devices.
This PR is removing the code to avoid unnecessary polling of useless values. And also, currently, unnecessary creation of empty RRD (waste of space).

DO NOT DELETE THIS TEXT

Please note

Please read this information carefully. You can run ./scripts/pre-commit.php to check your code before submitting.

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.

//This is the legacy code, to be tested against devices. This code looks terribly broken. There is
//most probably no device that can show anything out of this ...

if ($this_port['dot3StatsIndex'] && $port['ifType'] == 'ethernetCsmacd') {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This condition is really broken. A lot of devices do have dot3StatsIndex set and will then create a completely empty RRD ...

@murrant
Copy link
Member

murrant commented May 6, 2019

I'll take a look. I think some devices support PoE info with a state sensor (off, 24v, 48v, etc)

@PipoCanaja
Copy link
Contributor Author

Then we would probably need different RRDs for them, cause the current structure is very bound to the Cisco implementation.

@murrant murrant added this to the 1.53 milestone May 23, 2019
@murrant murrant merged commit ccb6e2e into librenms:master May 29, 2019
@lock lock bot locked as resolved and limited conversation to collaborators Jul 28, 2019
@PipoCanaja PipoCanaja deleted the poe branch March 17, 2020 11:25
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants