Re: smartd
Mike Tremaine <[email protected]>
| Newsgroups | gmane.comp.log.logwatch.devel |
|---|---|
| Message-ID | <[email protected]> |
Stefan Jakobs wrote:
> Hello,
>
> I attached a patch to the recent smartd Version from CVS which fixes the
> following unmatched entries:
>
> Drive: DEVICESCAN, implied '-a' Directive on line 27 of file /etc/smartd.conf
> Device: /dev/hda, packet devices [this device CD/DVD] not SMART capable
> Device /dev/sda: SATA disks accessed via libata are supported by Linux kernel
> versions 2.6.15-rc1 and above. Try adding '-d ata' or '-d sat' to the
> smartd.conf config file line.
> Device /dev/sdb: SATA disks accessed via libata are supported by Linux kernel
> versions 2.6.15-rc1 and above. Try adding '-d ata' or '-d sat' to the
> smartd.conf config file line.
> Device /dev/sdc: SATA disks accessed via libata are supported by Linux kernel
> versions 2.6.15-rc1 and above. Try adding '-d ata' or '-d sat' to the
> smartd.conf config file line.
>
This has been committed to CVS.
[mgt@dwarfstar services]$ cvs diff smartd
Index: smartd
===================================================================
RCS file: /var/cvs/logwatch/scripts/services/smartd,v
retrieving revision 1.24
diff -r1.24 smartd
52a53
> my %SataDisk = ();
111c112,114
< || ($ThisLine =~ /Device: (.*), Bad IEC (SMART) mode page, err=-5,
skip device/))
---
> || ($ThisLine =~ /Device: (.*), Bad IEC (SMART) mode page, err=-5,
skip device/)
> || ($ThisLine =~ /Drive: DEVICESCAN, implied '-a' Directive on
line [\d]+ of file/)
> || ($ThisLine =~ /packet devices \[this device CD\/DVD\] not
SMART capable/) )
149a153,154
> } elsif ( my ($Device) = ($ThisLine =~ /Device (.*): SATA disks
accessed via libata are supported by Linux kernel versions 2.6.15-rc1
and above/) ) {
> $SataDisk{"$Device"}++;
284a290,297
> if (%SataDisk) {
> print "\nSATA disk(s) supported by Linux kernel >= 2.6.15-rc1:\n";
> foreach my $Device (sort keys %SataDisk) {
> print " " .$Device .": Try adding '-d ata' or '-d sat' to the
smartd.conf config file line\n";
> }
> print "\n";
> }
>