Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 14 Aug 2016 23:13:57 +1000 (EST)
From:      Ian Smith <smithi@nimnet.asn.au>
To:        "William A. Mahaffey III" <wam@hiwaay.net>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: Monitoring server for crashes
Message-ID:  <20160814222921.O79687@sola.nimnet.asn.au>
In-Reply-To: <mailman.111.1471176002.59792.freebsd-questions@freebsd.org>
References:  <mailman.111.1471176002.59792.freebsd-questions@freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
In freebsd-questions Digest, Vol 636, Issue 8, Message: 7
On Sat, 13 Aug 2016 13:32:05 -0453.75 "William A. Mahaffey III" <wam@hiwaay.net> wrote:
 > On 08/13/16 09:33, Ian Smith wrote:
 [..]
 > > #!/bin/sh
 > > # 19Feb16 loadavg_daily .. every 10 seconds from 02:59 to 03:09 (run by cron)
 > > log='/root/loadavg_daily.log'
 > > secs=10
 > > i=0
 > > /root/bin/x200stat >> $log	# or something else, or nothing ..
 > > while [ $i -lt 60 ]; do
 > >          echo -n "`uptime`  " >> $log
 > >          echo "`sysctl -n hw.acpi.thermal.tz0.temperature`" \
 > >          "`sysctl -n hw.acpi.thermal.tz1.temperature`" >> $log
 > >          sleep $secs
 > >          i=$((i + 1))
 > > done
 > > /root/bin/x200stat >> $log
 > > echo >> $log
 > > =======
 > >
 > > Check sysctl hw.acpi.thermal for your thermal zones of interest.

 > Out of curiosity, I tried the above command under 9.3R:

I'm running a rather out of date stable/9 on that one.  4.5 months to go.

 > [wam@kabini1, ~, 1:30:25pm] 581 % sysctl -n hw.acpi.thermal.tz1.temperature
 > sysctl: unknown oid 'hw.acpi.thermal.tz1.temperature'

 > When did it become available ?

On my Lenovo X200, in 2008 :)

Yours clearly oesn't have a TZ1.  We saw an HP laptop of some sort here 
recently that had 5 thermal zones, with TZ2 being the CPU/s temperature.

Every model's BIOS / ACPI is different.  Some will expose CPU, GPU, HDD 
and other hot things, perhaps with controllable fans.  Some hide them ..

 > > Check sysctl hw.acpi.thermal for your thermal zones of interest.

And read acpi_thermal(4)

cheers, Ian



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20160814222921.O79687>