-
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
SMART does not separately tag sub-devices under a single device (megaraid) #6284
Comments
My influxdbsql is weak, but I hacked together what I think confirms that it's recording both values against the same tag:
|
Easiest way to check how we are recording the values is with:
Once the values hit the database the later data will overwrite earlier if the measurement+tagset+field+timestamp is the same, you can only have one value for each combination of these. Since above there are 2 values for With the workaround try grouping by
|
That's super helpful - thanks! Yes, the serial number and WWN are unique which explains why there's two separate values for the same timestamp. |
Interesting side-effect, again maybe due to bad syntax on my part, but when I use the above config (added attributes=true for the nvme), it just reports the last device in the config file three times rather than reporting three distinct devices. It does add the "disk" tag to two of the three! If I reorder them, the last one is reported 3 times. Is this a separate bug?
|
It seems like another bug, though I'm not able to reproduce this on my, all SATA, system: [[inputs.smart]]
devices = ["/dev/sda"]
attributes = false
use_sudo = true
[[inputs.smart]]
devices = ["/dev/sdb"]
attributes = false
use_sudo = true
[inputs.smart.tags]
disk = "0"
[[inputs.smart]]
devices = ["/dev/sdc"]
attributes = false
use_sudo = true
[inputs.smart.tags]
disk = "1"
|
Interesting.. I'm able to reproduce this problem on both of my Dell servers. One running 1.7.2 and the other 1.11.4. Neither are just plain SATA. One is built-in RAID, plus the PCIe SSD, and the other has HBA interfaces to disk arrays and whatnot. Not sure how that would affect the output when the plugin is run in parallel though. I'll file a separate bug. |
@mattster98 can you test this with a nightly build, I'm wondering if the cause of this is similar to your other bug. |
Hi @mattster98 is this still a problem for you? Is it still happening with recent releases of telegraf? |
This does appear to be breaking out by serial number now. Thanks! Tested with 1.23.3 |
Relevant telegraf.conf:
System info:
Telegraf 1.11.4 (git: HEAD d9ca76e)
Linux r820 4.15.0-48-generic #51-Ubuntu SMP Wed Apr 3 08:28:49 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
smartctl 6.6 2016-05-31 r4324 [x86_64-linux-4.15.0-48-generic] (local build)
Steps to reproduce:
Expected behavior:
The two distinct devices would get somehow tagged to make them distinct. "0-0" and "0-1" for my given config snippet, for example.
Actual behavior:
The only device that shows up is "0", and as best I can tell, the values for both devices are recorded against that device.
Additional info:
I tried this workaround but haven't had any luck. Either my syntax is wrong or it's ignoring the tag specified.
The text was updated successfully, but these errors were encountered: