-
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 not for all devices #4720
Comments
@sachaz Can you add the output of your command:
|
Sure, here it is & thanks for your answer
|
I have telegraf-1.7.4-1.x86_64 installed on CentOS Linux release 7.5.1804 (Core).
And here is the test output for smart part:
|
As I said it works for one or two disks, not for more :( |
I don't think the solution matches the problem. which $telegraf --test|grep smart shows:
etc. etc. (The actual output is about 25 lines long). But since /dev/sg3 is a hardware raid controller, there are many hard drives within it, which is why you have to specify the additional parameters (" -d areca, 12/2") So I need to have multiple entries, one for each drive in the array: devices = [ "/dev/sg3 -d areca,1/2", "/dev/sg3 -d areca,2/2", "/dev/sg3 -d areca,3/2", "/dev/sg3 -d areca,4/2"] etc etc But as soon as I add the second one, it fails:
I can add the other, non-array drives all I want, for example this works: I thought the problem was that it doesn't accept duplicate devices. For example, I would have thought this would fail: devices = [ "/dev/sda", "/dev/sda"] but it works. The only difference is that my configuration requires the '-d' parameter: which returns the 'smart_device,device=sg3,host=sophie exit_status=2i 1610524882000000000' error and only lists the first drive within the array. For your reference, here's the output of Smartctl using the correct values
And if I change the --device parameter value to the next drive, it correctly retrieves the 2nd drive's values:
So smartctl is definitely able to retrieve each individual drive within the array correctly. |
Relevant telegraf.conf:
System info:
FreeBSD 11.1-RELEASE-p13
telegraf-1.6.3
Steps to reproduce:
From the 8 devices in the telegraf.conf I got only 2 devices result :
Expected behavior:
smart result on all disks
Actual behavior:
only 2 disks
Additional info:
on the system a request on other devices like following exemple works:
/usr/local/sbin/smartctl --info --health --attributes --tolerance=verypermissive -n standby --format=brief /dev/ciss0 -a -d cciss,7
The text was updated successfully, but these errors were encountered: