Monitoring server for crashes

Ian Smith smithi at nimnet.asn.au
Sun Aug 14 13:14:05 UTC 2016


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 at 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 at 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


More information about the freebsd-questions mailing list