DH67CF

From timswiki
Jump to: navigation, search

DH67CF Plugins

These plugins report the fan speeds, temperatures and voltages for the Intel DH67CF motherboard.

They all rely on the lm_sensors package to provide the necessary information.

DH67CF Fans

This plugin reports the fan speeds for an Intel DH67CF motherboard. The plugin should be saved with a filename 'dh67cf_fans' and a link can then be generated in the munin plugins directory:

$ ln -s /path/dh67cf_fans /etc/munin/plugins/dh67cf_fans


#!/bin/sh
#
# Plugin to report D945GCLF2 motherboard temperatures. Relies on lm_sensors
# package.
#
# Contributed by Tim Chappell
#
# Magic markers - optional - used by installation scripts and
# munin-config:
#
#%# family=manual
#%# capabilities=autoconf


TMPFILE=/tmp/mboard_fans.$$
DEBUG=false

if [ "$1" = "config" ]; then
        echo 'graph_category sensors'
        echo 'graph_title Motherboard Fan Speeds'
        echo 'graph_vlabel RPM'
        echo 'mboard_fan1.label Inlet fan'
        echo 'mboard_fan1.draw LINE1'
        echo 'mboard_fan1.type GAUGE'
        echo 'mboard_fan2.label CPU fan'
        echo 'mboard_fan2.draw LINE1'
        echo 'mboard_fan2.type GAUGE'
        echo 'mboard_fan1.warning 200:1200'
        echo 'mboard_fan2.warning 200:2500'
        exit 0
fi

touch $TMPFILE
if [ "$DEBUG" = "false" ]; then

        sensors >> $TMPFILE

else

        echo "Running in DEBUG mode"
        cat>> $TMPFILE <<- 'TESTMODE'
coretemp-isa-0000
Adapter: ISA adapter
Physical id 0:  +37.0°C  (high = +80.0°C, crit = +85.0°C)
Core 0:         +37.0°C  (high = +80.0°C, crit = +85.0°C)
Core 1:         +35.0°C  (high = +80.0°C, crit = +85.0°C)

nct6775-isa-0290
Adapter: ISA adapter
Vcore:          +0.98 V  (min =  +0.00 V, max =  +1.74 V)
in1:            +1.09 V  (min =  +0.00 V, max =  +0.00 V)  ALARM
AVCC:           +3.42 V  (min =  +2.98 V, max =  +3.63 V)
+3.3V:          +3.42 V  (min =  +2.98 V, max =  +3.63 V)
in4:            +1.05 V  (min =  +0.00 V, max =  +0.00 V)  ALARM
in5:            +0.99 V  (min =  +0.00 V, max =  +0.00 V)  ALARM
in6:            +1.05 V  (min =  +0.00 V, max =  +0.00 V)  ALARM
3VSB:           +3.42 V  (min =  +2.98 V, max =  +3.63 V)
Vbat:           +3.30 V  (min =  +2.70 V, max =  +3.30 V)
fan1:           421 RPM  (min =    0 RPM, div = 32)  ALARM
fan2:          1004 RPM  (min =    0 RPM, div = 32)  ALARM
fan3:             0 RPM  (min =    0 RPM, div = 128)
fan4:             0 RPM  (div = 128)
SYSTIN:         +30.0°C  (high =  +0.0°C, hyst =  +0.0°C)  ALARM  sensor = diode
CPUTIN:         +33.0°C  (high = +80.0°C, hyst = +75.0°C)  sensor = diode
AUXTIN:        -128.0°C    sensor = diode
PECI Agent 0:   +36.0°C  (high = +80.0°C, hyst = +75.0°C)
PCH_CHIP_TEMP:  +49.0°C  (high = +80.0°C, hyst = +75.0°C)
PECI Agent 1:    +0.0°C  (high = +80.0°C, hyst = +75.0°C)
cpu0_vid:      +2.050 V

TESTMODE
fi

awk '{if($1~"fan1:"){printf"mboard_fan1.value %s\n",$2}}' $TMPFILE
awk '{if($1~"fan2:"){printf"mboard_fan2.value %s\n",$2}}' $TMPFILE

# tidy up
/bin/rm -f $TMPFILE

DH67CF Temperatures

This plugin reports the temperatures for an Intel DH67CF motherboard. The plugin should be saved with a filename 'dh67cf_temp' and a link can then be generated in the munin plugins directory:

$ ln -s /path/dh67cf_temp /etc/munin/plugins/dh67cf_temp


#!/bin/sh
#
# Plugin to report DH67CF motherboard temperatures. Relies on lm_sensors
# package.
#
# Contributed by Tim Chappell
#
# Magic markers - optional - used by installation scripts and
# munin-config:
#
#%# family=manual
#%# capabilities=autoconf


TMPFILE=/tmp/mboard_temps.$$
DEBUG=false

if [ "$1" = "config" ]; then
        echo 'graph_category sensors'
        echo 'graph_title Motherboard Temperatures'
        echo 'graph_vlabel Degrees Celsius'
        echo 'mboard_core0_temp.label Core0 Temperature'
        echo 'mboard_core0_temp.draw LINE1'
        echo 'mboard_core0_temp.type GAUGE'
        echo 'mboard_core1_temp.label Core1 Temperature'
        echo 'mboard_core1_temp.draw LINE1'
        echo 'mboard_core1_temp.type GAUGE'
        echo 'mboard_chipset_temp.label Chipset Temperature'
        echo 'mboard_chipset_temp.draw LINE1'
        echo 'mboard_chipset_temp.type GAUGE'
        echo 'mboard_system_temp.label System Temperature'
        echo 'mboard_system_temp.draw LINE1'
        echo 'mboard_system_temp.type GAUGE'
        echo 'mboard_core0_temp.warning :75'
        echo 'mboard_core1_temp.warning :75'
        echo 'mboard_chipset_temp.warning :70'
        echo 'mboard_system_temp.warning :45'
        exit 0
fi

touch $TMPFILE
if [ "$DEBUG" = "false" ]; then

        sensors >> $TMPFILE

else

        echo "Running in DEBUG mode"
        cat>> $TMPFILE <<- 'TESTMODE'
coretemp-isa-0000
Adapter: ISA adapter
Physical id 0:  +37.0°C  (high = +80.0°C, crit = +85.0°C)
Core 0:         +37.0°C  (high = +80.0°C, crit = +85.0°C)
Core 1:         +35.0°C  (high = +80.0°C, crit = +85.0°C)

nct6775-isa-0290
Adapter: ISA adapter
Vcore:          +0.98 V  (min =  +0.00 V, max =  +1.74 V)
in1:            +1.09 V  (min =  +0.00 V, max =  +0.00 V)  ALARM
AVCC:           +3.42 V  (min =  +2.98 V, max =  +3.63 V)
+3.3V:          +3.42 V  (min =  +2.98 V, max =  +3.63 V)
in4:            +1.05 V  (min =  +0.00 V, max =  +0.00 V)  ALARM
in5:            +0.99 V  (min =  +0.00 V, max =  +0.00 V)  ALARM
in6:            +1.05 V  (min =  +0.00 V, max =  +0.00 V)  ALARM
3VSB:           +3.42 V  (min =  +2.98 V, max =  +3.63 V)
Vbat:           +3.30 V  (min =  +2.70 V, max =  +3.30 V)
fan1:           421 RPM  (min =    0 RPM, div = 32)  ALARM
fan2:          1004 RPM  (min =    0 RPM, div = 32)  ALARM
fan3:             0 RPM  (min =    0 RPM, div = 128)
fan4:             0 RPM  (div = 128)
SYSTIN:         +30.0°C  (high =  +0.0°C, hyst =  +0.0°C)  ALARM  sensor = diode
CPUTIN:         +33.0°C  (high = +80.0°C, hyst = +75.0°C)  sensor = diode
AUXTIN:        -128.0°C    sensor = diode
PECI Agent 0:   +36.0°C  (high = +80.0°C, hyst = +75.0°C)
PCH_CHIP_TEMP:  +49.0°C  (high = +80.0°C, hyst = +75.0°C)
PECI Agent 1:    +0.0°C  (high = +80.0°C, hyst = +75.0°C)
cpu0_vid:      +2.050 V

TESTMODE
fi

awk '{if($1~"Core"){n=substr($2,1,length($2)-1);printf"mboard_core%d_temp.value %s\n",n,substr($3,1,1+index($3,"."))}}' $TMPFILE
awk '{if($1~"PCH_CHIP_TEMP:"){printf"mboard_chipset_temp.value %s\n",substr($2,1,1+index($2,"."))}}' $TMPFILE
awk '{if($1~"CPUTIN:"){printf"mboard_system_temp.value %s\n",substr($2,1,1+index($2,"."))}}' $TMPFILE

# tidy up
/bin/rm -f $TMPFILE

DH67CF Voltages

This plugin reports the voltages for an Intel DH67CF motherboard. The plugin should be saved with a filename 'dh67cf_voltages' and a link can then be generated in the munin plugins directory:

$ ln -s /path/dh67cf_voltages /etc/munin/plugins/dh67cf_voltages


#!/bin/sh
#
# Plugin to report DH67CF motherboard voltages. Relies on lm_sensors
# package.
#
# Contributed by Tim Chappell
#
# Magic markers - optional - used by installation scripts and
# munin-config:
#
#%# family=manual
#%# capabilities=autoconf


TMPFILE=/tmp/mboard_volts.$$
DEBUG=false

if [ "$1" = "config" ]; then
        echo 'graph_category sensors'
        echo 'graph_title Motherboard Voltages'
        echo 'graph_vlabel Volts'
        echo 'mboard_vcore.label Vcore'
        echo 'mboard_vcore.draw LINE1'
        echo 'mboard_vcore.type GAUGE'
        echo 'mboard_avcc.label AVcc'
        echo 'mboard_avcc.draw LINE1'
        echo 'mboard_avcc.type GAUGE'
        echo 'mboard_3v3.label +3V3'
        echo 'mboard_3v3.draw LINE1'
        echo 'mboard_3v3.type GAUGE'
        echo 'mboard_3vsb.label +3Vsb'
        echo 'mboard_3vsb.draw LINE1'
        echo 'mboard_3vsb.type GAUGE'
        echo 'mboard_vbat.label Vbat'
        echo 'mboard_vbat.draw LINE1'
        echo 'mboard_vbat.type GAUGE'
        echo 'mboard_cpu.label CPU0 Vid'
        echo 'mboard_cpu.draw LINE1'
        echo 'mboard_cpu.type GAUGE'
        echo 'mboard_avcc.warning 2.98:3.63'
        echo 'mboard_3v3.warning 2.98:3.63'
        echo 'mboard_vbat.warning 2.98:3.63'
        exit 0
fi

touch $TMPFILE
if [ "$DEBUG" = "false" ]; then

        sensors >> $TMPFILE

else

        echo "Running in DEBUG mode"
        cat>> $TMPFILE <<- 'TESTMODE'
coretemp-isa-0000
Adapter: ISA adapter
Physical id 0:  +37.0°C  (high = +80.0°C, crit = +85.0°C)
Core 0:         +37.0°C  (high = +80.0°C, crit = +85.0°C)
Core 1:         +35.0°C  (high = +80.0°C, crit = +85.0°C)

nct6775-isa-0290
Adapter: ISA adapter
Vcore:          +0.98 V  (min =  +0.00 V, max =  +1.74 V)
in1:            +1.09 V  (min =  +0.00 V, max =  +0.00 V)  ALARM
AVCC:           +3.42 V  (min =  +2.98 V, max =  +3.63 V)
+3.3V:          +3.42 V  (min =  +2.98 V, max =  +3.63 V)
in4:            +1.05 V  (min =  +0.00 V, max =  +0.00 V)  ALARM
in5:            +0.99 V  (min =  +0.00 V, max =  +0.00 V)  ALARM
in6:            +1.05 V  (min =  +0.00 V, max =  +0.00 V)  ALARM
3VSB:           +3.42 V  (min =  +2.98 V, max =  +3.63 V)
Vbat:           +3.30 V  (min =  +2.70 V, max =  +3.30 V)
fan1:           421 RPM  (min =    0 RPM, div = 32)  ALARM
fan2:          1004 RPM  (min =    0 RPM, div = 32)  ALARM
fan3:             0 RPM  (min =    0 RPM, div = 128)
fan4:             0 RPM  (div = 128)
SYSTIN:         +30.0°C  (high =  +0.0°C, hyst =  +0.0°C)  ALARM  sensor = diode
CPUTIN:         +33.0°C  (high = +80.0°C, hyst = +75.0°C)  sensor = diode
AUXTIN:        -128.0°C    sensor = diode
PECI Agent 0:   +36.0°C  (high = +80.0°C, hyst = +75.0°C)
PCH_CHIP_TEMP:  +49.0°C  (high = +80.0°C, hyst = +75.0°C)
PECI Agent 1:    +0.0°C  (high = +80.0°C, hyst = +75.0°C)
cpu0_vid:      +2.050 V

TESTMODE
fi

awk '{if($1~"Vcore:"){printf"mboard_vcore.value %s\n",substr($2,1,2+index($2,"."))}}' $TMPFILE
awk '{if($1~"AVCC:"){printf"mboard_avcc.value %s\n",substr($2,1,2+index($2,"."))}}' $TMPFILE
awk '{if($1~"+3.3V:"){printf"mboard_3v3.value %s\n",substr($2,1,2+index($2,"."))}}' $TMPFILE
awk '{if($1~"3VSB:"){printf"mboard_3vsb.value %s\n",substr($2,1,2+index($2,"."))}}' $TMPFILE
awk '{if($1~"Vbat:"){printf"mboard_vbat.value %s\n",substr($2,1,2+index($2,"."))}}' $TMPFILE
awk '{if($1~"cpu0_vid:"){printf"mboard_cpu.value %s\n",substr($2,1,2+index($2,"."))}}' $TMPFILE

# tidy up
/bin/rm -f $TMPFILE

This website publishes a Privacy Policy. Continued use of this website implies your consent to the use of data outlined in the policy.