-
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
type confusion in zfs input module #4059
Comments
Did this happen after you upgraded Telegraf or does it happen on a fresh install? |
This happened on a fresh install. The version has never changed |
Can you run |
With
with
|
Could you also run:
and these:
|
There are also a few others:
|
It looks like you have an extra column with zpool list compared to what we are expecting, and the man page does not seem accurate about the number of columns either:
Could you run |
(fwiw between my last message and current message I ran
|
It seems like the manpage is not accurate. Perhaps we can change the command to:
We probably need to compare the functionality against FreeBSD 11 as well, we don't have a well defined list of FreeBSD platforms we support but based on the release dates I think we should consider at least 11 and 12. |
It is certainly good to be explicit and no rely on the default ordering. This is particularly true for data ingestion pipelines. That said, the man page ought to be fixed to. |
Could you compare against the |
It looks like this bug first appears in 11.2-RELEASE. I just upgraded a system from 11.1-RELEASE to 11.2-RELEASE and am experiencing this because of the added CKPOINT column. On 11.1-RELEASE: On 11.2-RELEASE: |
Sorry to drag up this old issue, but I turned on inputs.zfs on a FreeBSD 12.2 system and that made telegraf croak. relevant config bits (it works fine if I leave these out):
error message:
Some more debug output as requested from the original submitter:
Setting
(Note the proper first line output. In fact, I actually want only the pool stats, not all the individual datasets, is that possible?) Setting the list to
|
Sorry, I guess I should've read the code first. Looks like it shells out to sysctl like so:
As you can see, it only works when specifying the full OID, a prefix match doesn't work. But this is only true on 2 servers that I tested, my laptop here does the prefix search just fine. Odd. Funnily, I can hack around this like so, but the output then has the column names doubled :/
But hey, I can also just set Now why is sysctl messed up on these machines? |
Bug report
Relevant telegraf.conf:
System info:
∴uname -rms
FreeBSD 12.0-CURRENT amd64
∴telegraf version
Telegraf v1.5.3 (git: unknown unknown)
Steps to reproduce:
[[inputs.zfs]]
with default arguments/var/log/telegraf.log
Expected behavior:
no error messages in log
Actual behavior:
error messages in log
The text was updated successfully, but these errors were encountered: