blob: b1679c440b707ecc0bf1d4ac2ce3231e4d3227b8 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
|
--- plugins/node.d/hddtemp_smartctl.in.orig 2014-11-24 21:46:24 UTC
+++ plugins/node.d/hddtemp_smartctl.in
@@ -162,7 +162,7 @@ if ($^O eq 'linux') {
} elsif ($^O eq 'freebsd') {
opendir(DEV, '/dev');
- @drives = grep /^ad[0-9]+$/, readdir DEV;
+ @drives = grep /^ad[0-9]+$|^ada[0-9]+$/, readdir DEV;
closedir(DEV);
} elsif ($^O eq 'solaris') {
@drives = map { s@.*/@@ ; $_ } glob '/dev/rdsk/c*t*d*s2';
|