ports/sysutils/munin-node/files/patch-plugins__node.d__hddtemp_smartctl.in
Florian Smeets 8b61b2876c - Update to 2.0.6 based on [1]
- Add support for ada disk devices to hddtemp_smartctl [2]
- Add a patch for upstream bug 1251 to prevent huge munin-graph.log files

PR:		ports/171116 [1]
PR:		ports/169287 [2]
Submitted by:	mm [1], TAKEMON Takashi <takemon@bamboogate.co.jp> [2]
2012-09-13 22:00:33 +00:00

11 lines
468 B
Text

--- plugins/node.d/hddtemp_smartctl.in.orig 2012-09-11 11:26:15.928249255 +0200
+++ plugins/node.d/hddtemp_smartctl.in 2012-09-11 11:26:48.947249274 +0200
@@ -151,7 +151,7 @@
# without probing them.
} 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';