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

Linux_Wireless Plugin #3650

Closed
wants to merge 15 commits into from
Closed

Conversation

davidgs
Copy link
Contributor

@davidgs davidgs commented Jan 9, 2018

Gather basic stats on linux-based wireless interfaces.

Required for all PRs:

  • [X ] Signed CLA.
  • [X ] Associated README.md updated.
  • [X ] Has appropriate unit tests.

David G. Simmons added 6 commits January 9, 2018 11:47
plugins/inputs/linux_wireless/README.md Outdated Show resolved Hide resolved
plugins/inputs/linux_wireless/linux_wireless.go Outdated Show resolved Hide resolved
plugins/inputs/linux_wireless/linux_wireless.go Outdated Show resolved Hide resolved
myLines := strings.Split(string(table), "\n")
// split on '|' and trim the spaces
h1 := strings.Split(myLines[0], "|")
h2 := strings.Split(myLines[1], "|")
Copy link
Contributor

Choose a reason for hiding this comment

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

Check that length of h2 is at least the same length as h1 (and greater than 2) so the loop on 104 and other length-assumption references don't panic.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Fixed and return proper error.

plugins/inputs/linux_wireless/linux_wireless.go Outdated Show resolved Hide resolved
plugins/inputs/linux_wireless/linux_wireless.go Outdated Show resolved Hide resolved
@glinton glinton mentioned this pull request Sep 4, 2018
3 tasks
David G. Simmons added 2 commits September 4, 2018 14:55
Resolved all comments from PR review.
Resolved per CI
@davidgs
Copy link
Contributor Author

davidgs commented Oct 1, 2018

Closing in favor of a new mac/linux combined plugin

@davidgs davidgs closed this Oct 1, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants