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
Ping input does not report readings with duration of 0 correctly #3503
Comments
Can you add your config file and some example output in line protocol format, just enough to show the issue. You can use a file output like:
Adding native Go ping is #2833 |
I will get the information today, I will have access to the servers. |
I will send an example output in a couple hours. |
Very strange. Look forward to seeing the output, please make sure to include some "good" influxdb output so I can feed it back into Telegraf and hopefully reproduce the missing output. |
Not entirely sure if this is the same issue that @xkilian is having, but my issue is that I get no response metrics when the latency is low i.e. 0ms. That is because of the check done on here On Windows, when pinging internal network devices the response time may be 0ms such as:
So when that value is parsed as a value of 0, no response time metrics (average_response_ms, minimum_response_ms, and maximum_response_ms) are returned. Those values should be returned even if the value is 0. I recommend initializing the values to -1, and if there is an issue parsing, return -1 to inform the user there is an issue. Return no values at all for those metrics is not a good idea. Why I want to plot a zero (0) value, is that there may be congestion happening at some point and I actually want to see a low value including zero, and anything over 20ms can be an alert. As it stands now with no metric, I can't even create a graph since InfluxDB doesn't even have that value. |
That is exactly it. Which is why the only values I would sometimes see are 1 and 2. Never 0. |
graphite output 👍 telegraf.10_116.ping.reply_received 2 1511992562 |
Both the influx db and graphite output are the same as pstatho described. Not sure why I thought I was seeing average, max in the infludb output. Guess I was tired and it doesn't help that the influx output data is unsorted, kind of annoying but I guess that is another issue. |
Directions
Using the ping plugin the output is inconsistent when used in conjunction with the basicstats
Bug report
Relevant telegraf.conf:
System info:
Windows 10 and windows server 2008 (that I tested)
Telegraf Master from a two weeks ago.
Steps to reproduce:
Expected behavior:
Receive all series from the graphite output.
Actual behavior:
Systems are pinged as expected but...
Some series end up missing altogether(not always the sames ones), some appear and disappear. Some are only missing the metrics associated with basicstats (ex. mean).
Additional info:
I will try without basicstats to see if it is related.
Feature request
1 - Have it work consistently.
2 - Do not depend on OS ping output (Native Go pinger) or create a win_ping plugin that will handle correctly the various particularities of the ping output.
The text was updated successfully, but these errors were encountered: