![]() |
|
|||||||
| FreeBSD General Other questions regarding FreeBSD which do not fit in any of the categories below. |
![]() |
|
|
Thread Tools | Display Modes |
|
|||
|
I am trying to get this CPU temp script to work:
http://wiki.bsdforen.de/howto/systemueberwachung But when I run this script, I get an error: ERROR: temperature.rrd: conversion of '67,0' to float not complete: tail ',0' How can I fix it? Code:
#!/bin/sh
cpu_temp="hw.acpi.thermal.tz0.temperature"
disk="/dev/ad0"
smartctl="/usr/local/sbin/smartctl"
smartarg="-A"
option="194" # smart option for temp
cmd="/sbin/sysctl"
rrdtool="/usr/local/bin/rrdtool"
rrdfile="temperature.rrd"
h=`$smartctl $smartarg $disk | grep $option | awk '{print $10}'`
t=`$cmd $cpu_temp | awk '{print $2}' | sed -e s/C//`
# RRD Datenbank aktualisieren
$rrdtool update $rrdfile N:$t:$h
|
|
||||
|
Quote:
# LC_ALL=C LANG=C sysctl hw.acpi.thermal.tz0.temperature
__________________
religions, worst damnation of mankind "If 386BSD had been available when I started on Linux, Linux would probably never had happened." Linus Torvalds Linux is not UNIX! Face it! It is not an insult. It is fact: GNU is a recursive acronym for “GNU's Not UNIX”. vermaden's: links resources deviantart spreadbsd |
![]() |
| Thread Tools | |
| Display Modes | |
|
|