mirror of
https://github.com/munin-monitoring/contrib.git
synced 2025-07-25 18:38:30 +00:00
support for 'adaX' and 'daX' devices
This commit is contained in:
parent
c1a5b60113
commit
006ef061c2
1 changed files with 1 additions and 1 deletions
|
@ -139,7 +139,7 @@ if ($^O eq 'linux') {
|
||||||
# without probing them.
|
# without probing them.
|
||||||
} elsif ($^O eq 'freebsd') {
|
} elsif ($^O eq 'freebsd') {
|
||||||
opendir(DEV, '/dev');
|
opendir(DEV, '/dev');
|
||||||
@drives = grep /^ad[0-9]+$/, readdir DEV;
|
@drives = grep /^(a?da|ad)[0-9]+$/, readdir DEV;
|
||||||
closedir(DEV);
|
closedir(DEV);
|
||||||
} elsif ($^O eq 'solaris') {
|
} elsif ($^O eq 'solaris') {
|
||||||
@drives = map { s@.*/@@ ; $_ } glob '/dev/rdsk/c*t*d*s2';
|
@drives = map { s@.*/@@ ; $_ } glob '/dev/rdsk/c*t*d*s2';
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue