Munin: CPU Temperatur + Fan Speed

schorsch_76

FreeBSD Fanboy
Hallo BSD Kollegen,

ich hab auf dem neuen MB jetzt auch Munin installiert.

Die CPU Temperatur kann ich jetzt auslesen.
Code:
#!/bin/sh
case $1 in
   config)
        cat <<'EOM'
graph_title CPU Temperature
graph_vlabel Temerature (C)
graph_scale no
graph_args --base 1000 -l 0
graph_category system
EOM
        temps=`sysctl -a | grep cpu | grep temperature | cut -f 1 -d ':' | sed "s/\./_/g" | sort`
        CPU=0
        for t in $temps; do
                echo "${t}.label " CPU ${CPU}
                echo "${t}.warning 90"
                echo "${t}.critical 100"
                CPU=$((${CPU}+1))
        done

        exit 0;;
esac

temps=`sysctl -a | grep cpu | grep temperature | cut -f 1 -d ':' |  sort`
for t in $temps; do
        v=`sysctl ${t} | cut -f 2 -d ':' | sed "s/C//g"`
        t2=`echo ${t} | sed "s/\./_/g"`
        echo "${t2}.value "${v}
done

Nur wie kann ich die Fan Speeds auslesen?

Ich hab xmbmon und lmmon gefunden, aber der Lüfter läuft sicher keine 40000 RPM und die Ausgaben von sysctl und mbmon unterscheiden sich stark...
Code:
root@nas-dsm:/usr/local/etc/munin/plugins # sysctl -a | grep cpu | grep temper
dev.cpu.1.temperature: 42.7C
dev.cpu.0.temperature: 42.7C
root@nas-dsm:/usr/local/etc/munin/plugins # mbmon -A -e 2 -c 1 -r
TEMP0 : 36.0
TEMP1 : 35.0
TEMP2 :  0.0
FAN0  :    0
FAN1  : 39705
FAN2  :    0
VC0   :  +2.06
VC1   :  +1.86
V33   :  +3.39
V50P  :  +5.70
V12P  : +10.15
V12N  :  +4.26
V50N  :  +2.95
 
Zurück
Oben