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

Native Ping not working after 1.12.4 #6576

Closed
superjeng1 opened this issue Oct 25, 2019 · 2 comments · Fixed by #6581
Closed

Native Ping not working after 1.12.4 #6576

superjeng1 opened this issue Oct 25, 2019 · 2 comments · Fixed by #6581
Assignees
Labels
bug unexpected problem or unintended behavior
Milestone

Comments

@superjeng1
Copy link

superjeng1 commented Oct 25, 2019

Relevant telegraf.conf:

[[inputs.ping]]
  ## Hosts to send ping packets to.
  urls = ["1.1.1.1",
          "1.0.0.1",
          "dash.cloudflare.com",
          "www.google.com",
          "facebook.com",
          "twitter.com",
          "www.youtube.com"
         ]

  ## Method used for sending pings, can be either "exec" or "native".  When set
  ## to "exec" the systems ping command will be executed.  When set to "native"
  ## the plugin will send pings directly.
  ##
  ## While the default is "exec" for backwards compatibility, new deployments
  ## are encouraged to use the "native" method for improved compatibility and
  ## performance.
  method = "native"

  ## Number of ping packets to send per interval.  Corresponds to the "-c"
  ## option of the ping command.
  count = 5

  ## Time to wait between sending ping packets in seconds.  Operates like the
  ## "-i" option of the ping command.
  ping_interval = 0.5

  ## If set, the time to wait for a ping response in seconds.  Operates like
  ## the "-W" option of the ping command.
  timeout = 2.0

  ## If set, the total ping deadline, in seconds.  Operates like the -w option
  ## of the ping command.
  # deadline = 10

  ## Interface or source address to send ping from.  Operates like the -I or -S
  ## option of the ping command.
  interface = "ens3"

  ## Specify the ping executable binary.
  # binary = "ping"

  ## Arguments for ping command. When arguments is not empty, the command from
  ## the binary option will be used and other options (ping_interval, timeout,
  ## etc) will be ignored.
  # arguments = ["-c", "3"]

  ## Use only IPv6 addresses when resolving a hostname.
  ipv6 = false
  interval = "20s"

System info:

Debian 10, Telegraf 1.12.4 (git: HEAD 9a4f08e)

Steps to reproduce:

  1. Use the above config file in 1.12.3 and observe it working.
  2. Update telegraf to 1.12.4 release.

Expected behavior:

Nine metrics are available:
average_response_ms
maximum_response_ms
minimum_response_ms
packet_received
packet_transmitted
percent_packet_loss
result_code
standard_deviation_ms
ttl

Actual behavior:

Before updating, there are nine metrics available. But after update, only result_code, packet_received and packet_transmitted are available.

Additional info:

It doesn’t output any log even in debug log level.

Maybe related to this: #6563

@glinton glinton self-assigned this Oct 25, 2019
@glinton glinton added the bug unexpected problem or unintended behavior label Oct 25, 2019
@glinton glinton modified the milestone: 1.12.5 Oct 25, 2019
@glinton
Copy link
Contributor

glinton commented Oct 25, 2019

@superjeng1
Copy link
Author

I can confirm the debian amd64 version is working again. Thanks a lot!

@danielnelson danielnelson added this to the 1.12.5 milestone Nov 5, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug unexpected problem or unintended behavior
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants