rpms/munin/EL-4 munin-1.2.6-hddtemp_smartctl-spinup.patch,NONE,1.1

Andreas Thienemann ixs at fedoraproject.org
Wed Feb 18 14:12:47 UTC 2009


Author: ixs

Update of /cvs/pkgs/rpms/munin/EL-4
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv10995/EL-4

Added Files:
	munin-1.2.6-hddtemp_smartctl-spinup.patch 
Log Message:
* Wed Feb 18 2009 Andreas Thienemann <andreas at bawue.net> - 1.2.6-4
- Updated dependencies to better reflect plugin requirements
- Added hddtemp_smartctl patch to only scan for standby state on /dev/[sh]d? devices.


munin-1.2.6-hddtemp_smartctl-spinup.patch:

--- NEW FILE munin-1.2.6-hddtemp_smartctl-spinup.patch ---
--- munin-1.2.6/node/node.d/hddtemp_smartctl.in	2009-01-24 15:47:35.000000000 +0100
+++ munin-1.2.6/node/node.d/hddtemp_smartctl.in	2009-01-24 15:48:18.000000000 +0100
@@ -146,8 +146,8 @@
   $fulldev .= 'rdsk/' if $^O eq 'solaris';
   $fulldev .= exists $ENV{'dev_'.$_} ? $ENV{'dev_'.$_} : $dev;
 
-  # Avoid spinning up sleeping disks
-  next if `hdparm -C $fulldev 2>/dev/null` =~ /standby/;
+  # Avoid spinning up sleeping disks only for /dev/sd? or /dev/hd? devices.
+  next if $fulldev =~ /\/dev\/[sh]d?/ && `hdparm -C $fulldev 2>/dev/null` =~ /standby/;
 
   my $cmd = $smartctl.' -A ';
   $cmd .= $ENV{'args_'.$_}.' ' if exists $ENV{'args_'.$_};




More information about the fedora-extras-commits mailing list