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

fix ping exit code handling on non-Linux #7658

Merged
merged 1 commit into from
Jun 22, 2020
Merged

Conversation

nferch
Copy link
Contributor

@nferch nferch commented Jun 9, 2020

BSD-derived ping's use exit code 2 for timeout, not 1

Required for all PRs:

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

BSD-derived ping's use exit code 2 for timeout, not 1
Copy link
Contributor

@ssoroka ssoroka left a comment

Choose a reason for hiding this comment

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

Looks good. Maybe consider setting this during init()

@danielnelson danielnelson added this to the 1.14.5 milestone Jun 10, 2020
@danielnelson danielnelson added the fix pr to fix corresponding bug label Jun 10, 2020
@danielnelson
Copy link
Contributor

@nferch Can you sign the CLA? I'm also thinking about deprecating the ping executable, have you tried method = "native"?

@nferch
Copy link
Contributor Author

nferch commented Jun 10, 2020

@danielnelson Couldn't figure out how to grant a non-root user the capability to use raw or ICMP sockets on FreeBSD, so used the exec ping.

I'd also imagine there's some users that can't/won't address giving a non-root user the capabilities on Linux, so retaining method = "exec" seems like a good fallback option.

Perhaps method = "native" could be the default, though.

Will look into the CLA.

@danielnelson danielnelson merged commit 423fc28 into influxdata:master Jun 22, 2020
danielnelson pushed a commit that referenced this pull request Jun 22, 2020
rhajek pushed a commit to bonitoo-io/telegraf that referenced this pull request Jul 13, 2020
idohalevi pushed a commit to idohalevi/telegraf that referenced this pull request Sep 29, 2020
arstercz pushed a commit to arstercz/telegraf that referenced this pull request Mar 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
fix pr to fix corresponding bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants