-
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
'sensors' input unavailable for telegraf-0.10.2-1.x86_64 RPM #649
Comments
It looks like there is no provision in the |
Yes, this is true, setting that build flag slipped my mind. I'll make sure this is fixed for the next release. |
@sparrc, thank you. On a slightly related note, it'd be nice to unify the |
@dvusboy this is actually going to be more difficult than I realized. As far as I can tell we would need to build directly on 32-bit and ARM to support those platforms (and we would have to statically link in the C libraries in all cases). I think for the time being I'm going to have to say that the sensors plugin is only available for those building from source. |
This is the patch I ended up using to make it work for x86_64. I definitely haven't explored other platforms. |
That is what I tried as well, but I found that the resulting build won't work on a box that doesn't have But I believe this would also require statically building on a 64-bit, 32-bit, and ARM VM. |
It seems that sensors input is still not present in 0.13 ?
|
|
I do have one more comment on this issue: Is there a reason why |
@dvusboy because |
Another solution would be to invoke the sensors command from the lm_sensors package. |
correct, I think that is a much simpler solution. Requires forking a process off but it might be worth it. Telegraf isn't a C project and it needs to be able to be cross-compiled, so I doubt there will ever be a pre-built solution for the sensors plugin in it's current form. |
if you want I can write a plugin with exec... |
that would be great, but I would prefer if you just modify the existing sensors plugin |
Thanks. I'm not a big fan of having to fork a process to do this, as in the IPMI plugin. But it is what it is to avoid a build-time dependency. |
It appears the
telegraf
executable in the official RPM, specifically,telegraf-0.10.2-1.x86_64.rpm
, does not support thesensors
input:The text was updated successfully, but these errors were encountered: