-
Notifications
You must be signed in to change notification settings - Fork 5.6k
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
Result code is not set correctly with ping and method = "native" #6521
Comments
Can you try with the following build (whichever suits your environment) and get back to us:
|
Upgraded telegraf agent with the rpm version provided below:
[root@N1VL-PA-INFL01 ~]# rpm -qa | grep -i telegraf
telegraf-1.13.0~be03a7e8-0.x86_64
[root@N1VL-PA-INFL01 ~]#
Still getting same error that getting result_code as 0, where this IP is actually not exist.
[root@N1VL-PA-INFL01 ~]# telegraf --config /etc/telegraf/telegraf.conf --test | grep -i 10.10.10.10
2019-10-15T05:05:16Z I! Starting Telegraf
ping,IP=10.14.124.23,host=N1VL-PA-INFL01,url=10.10.10.10 average_response_ms=6.369094,maximum_response_ms=13.092524,minimum_response_ms=0.02276,packets_received=3i,packets_transmitted=3i,percent_packet_loss=0,result_code=0i,standard_deviation_ms=5.342367,ttl=60i 1571115919000000000
[root@N1VL-PA-INFL01 ~]# ping -c 3 -W 10 10.10.10.10
PING 10.10.10.10 (10.10.10.10) 56(84) bytes of data.
…--- 10.10.10.10 ping statistics ---
3 packets transmitted, 0 received, 100% packet loss, time 1999ms
[root@N1VL-PA-INFL01 ~]#
Regards,
Priyanka
+91 9899848737
From: Greg [mailto:notifications@github.com]
Sent: Tuesday, October 15, 2019 3:46 AM
To: influxdata/telegraf
Cc: Priyanka Mondal; Author
Subject: Re: [influxdata/telegraf] Result code is not set correctly with ping and method = "native" (#6521)
Can you try with the following build (whichever suits your environment) and get back to us:
* freebsd/
* amd64
* telegraf<https://41927-33258973-gh.circle-artifacts.com/0/build/freebsd/amd64/telegraf>
* telegraf-1.13.0~be03a7e8_freebsd_amd64.tar.gz<https://41927-33258973-gh.circle-artifacts.com/0/build/freebsd/amd64/telegraf-1.13.0%7Ebe03a7e8_freebsd_amd64.tar.gz>
* i386
* telegraf<https://41927-33258973-gh.circle-artifacts.com/0/build/freebsd/i386/telegraf>
* telegraf-1.13.0~be03a7e8_freebsd_i386.tar.gz<https://41927-33258973-gh.circle-artifacts.com/0/build/freebsd/i386/telegraf-1.13.0%7Ebe03a7e8_freebsd_i386.tar.gz>
* linux/
* amd64
* telegraf<https://41927-33258973-gh.circle-artifacts.com/0/build/linux/amd64/telegraf>
* telegraf-1.13.0~be03a7e8-0.x86_64.rpm<https://41927-33258973-gh.circle-artifacts.com/0/build/linux/amd64/telegraf-1.13.0%7Ebe03a7e8-0.x86_64.rpm>
* telegraf-1.13.0~be03a7e8_linux_amd64.tar.gz<https://41927-33258973-gh.circle-artifacts.com/0/build/linux/amd64/telegraf-1.13.0%7Ebe03a7e8_linux_amd64.tar.gz>
* telegraf_1.13.0~be03a7e8-0_amd64.deb<https://41927-33258973-gh.circle-artifacts.com/0/build/linux/amd64/telegraf_1.13.0%7Ebe03a7e8-0_amd64.deb>
* armhf
* telegraf<https://41927-33258973-gh.circle-artifacts.com/0/build/linux/armhf/telegraf>
* telegraf-1.13.0~be03a7e8-0.armv6hl.rpm<https://41927-33258973-gh.circle-artifacts.com/0/build/linux/armhf/telegraf-1.13.0%7Ebe03a7e8-0.armv6hl.rpm>
* telegraf-1.13.0~be03a7e8_linux_armhf.tar.gz<https://41927-33258973-gh.circle-artifacts.com/0/build/linux/armhf/telegraf-1.13.0%7Ebe03a7e8_linux_armhf.tar.gz>
* telegraf_1.13.0~be03a7e8-0_armhf.deb<https://41927-33258973-gh.circle-artifacts.com/0/build/linux/armhf/telegraf_1.13.0%7Ebe03a7e8-0_armhf.deb>
* i386
* telegraf<https://41927-33258973-gh.circle-artifacts.com/0/build/linux/i386/telegraf>
* telegraf-1.13.0~be03a7e8-0.i386.rpm<https://41927-33258973-gh.circle-artifacts.com/0/build/linux/i386/telegraf-1.13.0%7Ebe03a7e8-0.i386.rpm>
* telegraf-1.13.0~be03a7e8_linux_i386.tar.gz<https://41927-33258973-gh.circle-artifacts.com/0/build/linux/i386/telegraf-1.13.0%7Ebe03a7e8_linux_i386.tar.gz>
* telegraf_1.13.0~be03a7e8-0_i386.deb<https://41927-33258973-gh.circle-artifacts.com/0/build/linux/i386/telegraf_1.13.0%7Ebe03a7e8-0_i386.deb>
* s390x
* telegraf<https://41927-33258973-gh.circle-artifacts.com/0/build/linux/s390x/telegraf>
* telegraf-1.13.0~be03a7e8-0.s390x.rpm<https://41927-33258973-gh.circle-artifacts.com/0/build/linux/s390x/telegraf-1.13.0%7Ebe03a7e8-0.s390x.rpm>
* telegraf-1.13.0~be03a7e8_linux_s390x.tar.gz<https://41927-33258973-gh.circle-artifacts.com/0/build/linux/s390x/telegraf-1.13.0%7Ebe03a7e8_linux_s390x.tar.gz>
* telegraf_1.13.0~be03a7e8-0_s390x.deb<https://41927-33258973-gh.circle-artifacts.com/0/build/linux/s390x/telegraf_1.13.0%7Ebe03a7e8-0_s390x.deb>
* static_amd64
* telegraf<https://41927-33258973-gh.circle-artifacts.com/0/build/linux/static_amd64/telegraf>
* telegraf-1.13.0~be03a7e8-static_linux_amd64.tar.gz<https://41927-33258973-gh.circle-artifacts.com/0/build/linux/static_amd64/telegraf-1.13.0%7Ebe03a7e8-static_linux_amd64.tar.gz>
* arm64
* telegraf<https://41927-33258973-gh.circle-artifacts.com/0/build/linux/arm64/telegraf>
* telegraf-1.13.0~be03a7e8-0.arm64.rpm<https://41927-33258973-gh.circle-artifacts.com/0/build/linux/arm64/telegraf-1.13.0%7Ebe03a7e8-0.arm64.rpm>
* telegraf-1.13.0~be03a7e8_linux_arm64.tar.gz<https://41927-33258973-gh.circle-artifacts.com/0/build/linux/arm64/telegraf-1.13.0%7Ebe03a7e8_linux_arm64.tar.gz>
* telegraf_1.13.0~be03a7e8-0_arm64.deb<https://41927-33258973-gh.circle-artifacts.com/0/build/linux/arm64/telegraf_1.13.0%7Ebe03a7e8-0_arm64.deb>
* armel
* telegraf<https://41927-33258973-gh.circle-artifacts.com/0/build/linux/armel/telegraf>
* telegraf-1.13.0~be03a7e8-0.armel.rpm<https://41927-33258973-gh.circle-artifacts.com/0/build/linux/armel/telegraf-1.13.0%7Ebe03a7e8-0.armel.rpm>
* telegraf-1.13.0~be03a7e8_linux_armel.tar.gz<https://41927-33258973-gh.circle-artifacts.com/0/build/linux/armel/telegraf-1.13.0%7Ebe03a7e8_linux_armel.tar.gz>
* telegraf_1.13.0~be03a7e8-0_armel.deb<https://41927-33258973-gh.circle-artifacts.com/0/build/linux/armel/telegraf_1.13.0%7Ebe03a7e8-0_armel.deb>
* mips
* telegraf<https://41927-33258973-gh.circle-artifacts.com/0/build/linux/mips/telegraf>
* telegraf-1.13.0~be03a7e8_linux_mips.tar.gz<https://41927-33258973-gh.circle-artifacts.com/0/build/linux/mips/telegraf-1.13.0%7Ebe03a7e8_linux_mips.tar.gz>
* telegraf_1.13.0~be03a7e8-0_mips.deb<https://41927-33258973-gh.circle-artifacts.com/0/build/linux/mips/telegraf_1.13.0%7Ebe03a7e8-0_mips.deb>
* mipsel
* telegraf<https://41927-33258973-gh.circle-artifacts.com/0/build/linux/mipsel/telegraf>
* telegraf-1.13.0~be03a7e8_linux_mipsel.tar.gz<https://41927-33258973-gh.circle-artifacts.com/0/build/linux/mipsel/telegraf-1.13.0%7Ebe03a7e8_linux_mipsel.tar.gz>
* telegraf_1.13.0~be03a7e8-0_mipsel.deb<https://41927-33258973-gh.circle-artifacts.com/0/build/linux/mipsel/telegraf_1.13.0%7Ebe03a7e8-0_mipsel.deb>
* windows/
* amd64
* telegraf-1.13.0~be03a7e8_windows_amd64.zip<https://41927-33258973-gh.circle-artifacts.com/0/build/windows/amd64/telegraf-1.13.0%7Ebe03a7e8_windows_amd64.zip>
* telegraf.exe<https://41927-33258973-gh.circle-artifacts.com/0/build/windows/amd64/telegraf.exe>
* i386
* telegraf-1.13.0~be03a7e8_windows_i386.zip<https://41927-33258973-gh.circle-artifacts.com/0/build/windows/i386/telegraf-1.13.0%7Ebe03a7e8_windows_i386.zip>
* telegraf.exe<https://41927-33258973-gh.circle-artifacts.com/0/build/windows/i386/telegraf.exe>
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub<#6521?email_source=notifications&email_token=AK2QCP7QARPZ3LPLBXOR72DQOTVRJA5CNFSM4JAL74W2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEBGZBAQ#issuecomment-541954178>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AK2QCP5RAMDI3Y743O7N72TQOTVRJANCNFSM4JAL74WQ>.
[http://www.airtel.in/transparency/banner1.png]
***********************************************************************************************************************************************************************
This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system manager. This message contains confidential information and is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately by e-mail if you have received this e-mail by mistake and delete this e-mail from your system. If you are not the intended recipient you are notified that disclosing, copying, distributing or taking any action in reliance on the contents of this information is strictly prohibited . The information contained in this mail is propriety and strictly confidential.
***********************************************************************************************************************************************************************
“CONFIDENTIALITY NOTICE This e-mail message and any attachments are only for the use of the intended recipient and may contain information that is privileged, confidential or exempt from disclosure under applicable law. If you are not the intended recipient, any disclosure, distribution or other use of this e-mail message or attachments is prohibited. If you have received this e-mail message in error, please delete and notify the sender immediately. Thank you.”
|
can you please suggest if [[inputs.ping]] will work for 3000 IPs from a single config file using method 'exec'? |
Does this happen only when running with many IPs, or can you reproduce it with only the single address listed?
I think that would be too much, since it needs to fork a process for each IP. |
For Native method, it is giving same result (result_code=0) either I am using single url/IP. But for exe method , it is working properly but I can't use multiple url /IP under exe method. |
@glinton Can you check the output below, I think we shouldn't emit any errors and only the last summary metric but with [[inputs.ping]]
urls = ["10.10.10.10"]
count = 3
timeout = 1.0
method = "native"
|
Find root cause of ^^ |
Hi Please let me know if any output required from my end |
Hi,
telegraf version: telegraf-1.12.2
I am monitoring 3000 IPs from a single telegraf config file, using method "native". PFB telegraf configuration for ping:
[agent]
interval = "120s"
[[inputs.ping]]
urls = ["**********","*****", "10.10.10.10"]
method = "native"
count = 3
timeout = 10.0
below is the output of this configuration:
[root@N1VL-PA-INFL01 ~]# telegraf --config /etc/telegraf/telegraf.conf --test | grep -i 10.10.10.10
2019-10-14T08:00:23Z I! Starting Telegraf 1.12.2
where this IP does not exist, and result_code should not be 0:
[root@N1VL-PA-INFL01 ~]# ping -c 3 -W 10 10.10.10.10
PING 10.10.10.10 (10.10.10.10) 56(84) bytes of data.
--- 10.10.10.10 ping statistics ---
3 packets transmitted, 0 received, 100% packet loss, time 1999ms
[root@N1VL-PA-INFL01 ~]#
there is few IPs which are individually getting pinged from source server but in telegraf result_code is showing '2'.
Can you please help to rectify this error?
The text was updated successfully, but these errors were encountered: