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

Windows ping plugin type error #1433

Closed
dmitrysdm opened this issue Jul 1, 2016 · 4 comments · Fixed by #2462
Closed

Windows ping plugin type error #1433

dmitrysdm opened this issue Jul 1, 2016 · 4 comments · Fixed by #2462
Assignees
Labels
bug unexpected problem or unintended behavior platform/windows
Milestone

Comments

@dmitrysdm
Copy link

This example does not work: Error parsing .\exec_telegraf.conf, Undefined but requested input: ping

[[inputs.ping]]

[ping]

    # urls to ping
    urls = ["localhost"] # required
    # number of pings to send (ping -c <COUNT>)
    count = 1 # required
    # # interval, in s, at which to ping. 0 == default (ping -i <PING_INTERVAL>)
    ping_interval = 0.0
    # # ping timeout, in s. 0 == no timeout (ping -t <TIMEOUT>)
    timeout = 0.0
    # # interface to send ping from (ping -I <INTERFACE>)
    # interface = ""

I am also try config from #222 , but unsuccessful

@mendelgusmao
Copy link
Contributor

This plugin doesn't work on Windows, actually... There is no such implementation so far.

@sparrc sparrc changed the title Need more documentation and examples for ping plugin on windows ping support on windows Jul 19, 2016
@sparrc sparrc changed the title ping support on windows ping plugin support on windows Jul 19, 2016
@sparrc sparrc mentioned this issue Jul 21, 2016
@DracoAter
Copy link

As this is not closed yet, submitting a bug about Windows ping here.

Windows ping output conflicts with default ping output:

OS: Ubuntu 16.04
Telegraf: Telegraf v1.2.1 (git: release-1.2 3b6ffb3)
Output:

ping,url=8.8.8.8,host=bunker packets_received=3i,percent_packet_loss=0,average_response_ms=15.474,standard_deviation_ms=2.246,packets_transmitted=3i 1487076994000000000

OS: Windows 7
Telegraf: Telegraf v1.2.1 (git: release-1.2 3b6ffb3)
Output:

ping,url=192.168.29.10,host=overlord packets_transmitted=3i,reply_received=3i,packets_received=3i,percent_packet_loss=0,percent_reply_loss=0,average_response_ms=6i,minimum_response_ms=6i,maximum_response_ms=7i 1487078577000000000

The conflicting fields are average_response_ms, which is float in linux and integer in windows.

Error is (seen in Windows machine):

InfluxDB Output Error: {"error":"field type conflict: input field "average_response_ms" on measurement "ping" is type int64, already exists as type float"}

@sparrc sparrc changed the title ping plugin support on windows Windows ping plugin type error Feb 14, 2017
@sparrc sparrc added the bug unexpected problem or unintended behavior label Feb 14, 2017
@sparrc sparrc added this to the 1.3.0 milestone Feb 14, 2017
sparrc added a commit that referenced this issue Feb 22, 2017
sparrc added a commit that referenced this issue Feb 22, 2017
sparrc added a commit that referenced this issue Mar 1, 2017
ssorathia pushed a commit to ssorathia/telegraf that referenced this issue Mar 25, 2017
@dudusakharovich
Copy link

Hey @sparrc

I'm unable to use the ping input on windows machine.
What is the proper configuration which will make it succeed ?

@danielnelson
Copy link
Contributor

@dudusakharovich Please ask general questions at the InfluxData Community site. Also, if you want your problem solved you should follow proper protocol for asking technical questions: include detailed information about what you are trying, what you expect to happen, and what actually happened.

vlamug pushed a commit to vlamug/telegraf that referenced this issue May 30, 2017
maxunt pushed a commit that referenced this issue Jun 26, 2018
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 platform/windows
Projects
None yet
Development

Successfully merging a pull request may close this issue.

7 participants