From owner-freebsd-ports@FreeBSD.ORG Wed May 6 11:53:28 2009 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 8850A1065670 for ; Wed, 6 May 2009 11:53:28 +0000 (UTC) (envelope-from matthias.andree@gmx.de) Received: from mail.gmx.net (mail.gmx.net [213.165.64.20]) by mx1.freebsd.org (Postfix) with SMTP id DA7D18FC0C for ; Wed, 6 May 2009 11:53:27 +0000 (UTC) (envelope-from matthias.andree@gmx.de) Received: (qmail invoked by alias); 06 May 2009 11:53:25 -0000 Received: from balu.cs.uni-paderborn.de (EHLO balu.cs.uni-paderborn.de) [131.234.21.37] by mail.gmx.net (mp057) with SMTP; 06 May 2009 13:53:25 +0200 X-Authenticated: #428038 X-Provags-ID: V01U2FsdGVkX1+vF7Z9WHuvO4lISKPG0h9Hche8Mm7fheJ4jWwAz8 mG0Jc5gg8s1FfN Received: from localhost ([127.0.0.1]) by balu.cs.uni-paderborn.de with esmtp (Exim 4.69) (envelope-from ) id KJ8111-0001HG-9L for freebsd-ports@freebsd.org; Wed, 06 May 2009 13:53:25 +0200 Message-ID: <4A017A34.2080007@gmx.de> Date: Wed, 06 May 2009 13:53:24 +0200 From: Matthias Andree User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; de; rv:1.8.1.21) Gecko/20090302 Thunderbird/2.0.0.21 Mnenhy/0.7.6.666 MIME-Version: 1.0 To: freebsd-ports@freebsd.org References: <20090506092040.GG10207@lupe-christoph.de> <554220569.20090506124731@mail.ru> <20090506111242.GD24549@lupe-christoph.de> <883388359.20090506142905@mail.ru> In-Reply-To: <883388359.20090506142905@mail.ru> Content-Type: text/plain; charset=windows-1251 Content-Transfer-Encoding: 7bit X-Y-GMX-Trusted: 0 X-FuHaFi: 0.54 Subject: Re: [munin-users] Replacement for "hdparm -C"? X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 06 May 2009 11:53:28 -0000 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.