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
Update readme for ping input to clarify supported platforms/ping
versions
#5665
Comments
I use it on Windows without issues? Windows Server 2016 box. |
@victorhooi What pfsense version are you using? From what I can see in pfsense 2.4.4, ping has the same options and output as telegraf expects. Did you try and it failed? |
I just confirmed the ping input plugin works on pfsense 2.4.4. Maybe we need to update the readme |
ping
versions
Oh - that's fantastic news! Sorry, yes, I was going off the Telegraf README which seemed to suggest I needed the Linux-only version of ping. (I was actually curious why this was). Are you able to share your pfSense telegraf config? I can test it on one of my instances today. |
I just ran the ping plugin on it, so it's purely a POC config, nothing useful whatsoever: [agent]
interval="1s"
flush_interval="1s"
omit_hostname=true
[[inputs.ping]]
urls = ["someurl.com"]
count = 3
[[outputs.file]]
files = ["stdout"] |
I added the following as a custom directive for Telegraf in pfSense:
(My Telegraf package is already configured to output to InfluxDB, and I can confirm that works. Fro the agent config, I believe pfSense Telegraf already defaults to an interval of 1.0 second, and I think ping should still work with the default flush_interval, and with setting hostnames?) However, when I check InfluxDB, the ping plugin only seems to return a single field (
Why is it not writing the other fields? (e.g. Super confused... |
Looking at #4613 - could it be that the output format is different somehow? |
I saw this post and there was a suggestion to try the following command-line:
I ran this on a Ubuntu host:
I then ran this on pfSense:
Does that tell us anything useful? Also, might be nice to add to ping plugin README what the default command-line it runs under the hood is, if that helps diagnosis. |
How did you install telegraf on your pfsense box? The builtin package manger version is |
On FreeBSD, "-W" sets the timeout in milliseconds . On Linux, "-W" sets the timeout in seconds. https://unix.stackexchange.com/questions/63651/what-is-the-difference-between-ping-w-and-ping-w Also, I realised you can run
Anyhow, I try to set the ping timeout in my
but I get an error:
I thought Sorry for the number of comments, trying to include all the steps taken and information as I try to troubleshoot this myself, in case it helps. |
Ah yes - I am using the inbuilt pfSense package, which is indeed 1.6.3. This is running on a Netgate XG-7100 (amd64). I downloaded the latest 1.10.2 binary from here using curl. I had to stop the Telegraf service on pfSense, as FreeBSD complained about
I then restarted the service, and can confirm it all works now! Was is just a bug with the ping plugin in the older Telegraf? Also - I noticed there's no arm package for FreeBSD on releases. Is that intentional? (This is for devices like the Netgate SG-3100, which I think is arm64 - there's this PR for pfSense to build the package, but if Influx also provides a binary, it means I can drop-in replace as I did above). |
I'm not certain, it could be though, due to lack of demand.. |
You may want to consider using the packages from FreeBSD ports https://www.freshports.org/net-mgmt/telegraf/ |
I believe pfSense pulls from FreeBSD ports - but they're usually delayed by a few months (or longer, in some cases, I believe). Using the drop-in replacement binary, as @glinton suggested above worked well on the Netgate XG-7100 (x64) based hardware. Netgate also make several ARM-based devices. Would be super useful if there were arm64 binaries available as well, to use whilst we waited for pfSense to update their packages. |
You have to configure pfsense to pull from the ports. If configuration isn't for you, you can manually add the package using:
|
I updated the documentation to be less confusing. 90593a0 @girgen Maybe we could add arm support to the build.py file. I looked at this patch but I must be missing something, it doesn't seem like this is enough to support tgz and the right ARM flags. Is there an additional patch? |
Closed in 90593a0 |
Yes, you also need to copy the files according to https://svnweb.freebsd.org/ports/head/net-mgmt/telegraf/Makefile?r1=485905&r2=490433
|
I'm confused about the patch to build.py specifically, if I make the same changes and run it like:
Now looking at your Makefile I think perhaps you aren't using build.py at all, so perhaps this patch isn't needed. Also, in Telegraf 1.10 and later those two files should already be included in gopsutil. |
@victorhooi Could you create a new feature request issue for FreeBSD arm package? |
The two "addtional" files, created by the |
Done - created FR #5714 to add ARM binaries for FreeBSD |
The current ping plugin appears to depend on iputils-ping, per the README.
However, this package is Linux-specific, and not supported on any other platform (e.g. FreeBSD, Windows etc.)
Is there a specific reason we require the Linux version of ping? Can there be some mode/functionality that also works on say, FreeBSD?
(My specific use case is for use on a pfSense box, with Telegraf installed in order to provide latency stats).
The text was updated successfully, but these errors were encountered: