Date: Wed, 06 May 2009 13:53:24 +0200 From: Matthias Andree <matthias.andree@gmx.de> To: freebsd-ports@freebsd.org Subject: Re: [munin-users] Replacement for "hdparm -C"? Message-ID: <4A017A34.2080007@gmx.de> In-Reply-To: <883388359.20090506142905@mail.ru> References: <20090506092040.GG10207@lupe-christoph.de> <554220569.20090506124731@mail.ru> <20090506111242.GD24549@lupe-christoph.de> <883388359.20090506142905@mail.ru>
next in thread | previous in thread | raw e-mail | index | archive | help
Sergey A. Kobzar schrieb: > Wednesday, May 6, 2009, 2:12:42 PM, Lupe wrote: > >> On Wednesday, 2009-05-06 at 12:47:31 +0300, Sergey A. Kobzar wrote: >>> Wednesday, May 6, 2009, 12:20:40 PM, Lupe wrote: > >>> AFAIK you can get HDD temp using sysutils/smartmontools on FreeBSD >>> only. > >> The plugin use the smartctl command. > >>> I never tried to do this for disks which are spin down. But why do you >>> need check temperature of such disks? One time someone will ask you to >>> minitor temperature for suspended server... IMHO it's not fully >>> correct :) > >> The plugin is run every five minutes for all disks it is told to watch. A >> disk that is always spun down should not be on that list ;-) > > This should help: > > SMARTCTL(8): > > -n POWERMODE, --nocheck=POWERMODE > Specifieds if smartctl should exit before performing any checks > when the device is in a low-power mode. It may be used to pre- > vent a disk from being spun-up by smartctl. The power mode is > ignored by default. The allowed values of POWERMODE are: > > > Something like: > > # smartctl -n standby -a /dev/ad0 | grep -i temp Does this actually work? ISTR that this failed at least for some SATA controllers, such as VIA 8237.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4A017A34.2080007>