D945GCLF2

From timswiki
Jump to: navigation, search

Munin plugins for the Intel D945GCLF2 motherboard.


All of these plugins are dependant upon the successful installation of the lm_sensors package prior to their use.


d945gclf2_volts

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

 ln -s /path/d945gclf2_volts /etc/munin/plugins/d945gclf2_volts


 #!/bin/sh
 #
 # Plugin to report D945GCLF2 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 PSU Voltages'
       echo 'graph_vlabel Volts'
       echo 'mboard_2v5_volts.label 2V5 supply'
       echo 'mboard_2v5_volts.draw LINE1'
       echo 'mboard_vcore_volts.label Vcore supply'
       echo 'mboard_vcore_volts.draw LINE1'
       echo 'mboard_3v3_volts.label 3V3 supply'
       echo 'mboard_3v3_volts.draw LINE1'
       echo 'mboard_5v0_volts.label +5V supply'
       echo 'mboard_5v0_volts.draw LINE1'
       echo 'mboard_12v0_volts.label +12V supply'
       echo 'mboard_12v0_volts.draw LINE1'
       echo 'mboard_vcc_volts.label VCC supply'
       echo 'mboard_vcc_volts.draw LINE1'
       echo 'mboard_1v5_volts.label 1V5 supply'
       echo 'mboard_1v5_volts.draw LINE1'
       echo 'mboard_1v8_volts.label 1V8 supply'
       echo 'mboard_1v8_volts.draw LINE1'
       echo 'mboard_cpu0vid_volts.label CPU0 VID supply'
       echo 'mboard_cpu0vid_volts.draw LINE1'
       exit 0
 fi
 touch $TMPFILE
 if [ "$DEBUG" = "false" ]; then
       sensors >> $TMPFILE
 else
       echo "Running in DEBUG mode"
       cat>> $TMPFILE <<- 'TESTMODE'
               smsc47m192-i2c-0-2d
               Adapter: SMBus I801 adapter at 2000
               +2.5V:       +2.54 V  (min =  +0.00 V, max =  +3.32 V)
               VCore:       +1.16 V  (min =  +0.00 V, max =  +2.99 V)
               +3.3V:       +3.35 V  (min =  +0.00 V, max =  +4.38 V)
               +5V:         +5.08 V  (min =  +0.00 V, max =  +6.64 V)
               +12V:       +12.19 V  (min =  +0.00 V, max = +15.94 V)
               VCC:         +3.35 V  (min =  +0.00 V, max =  +4.38 V)
               +1.5V:       +1.56 V  (min =  +0.00 V, max =  +1.99 V)
               +1.8V:       +1.78 V  (min =  +0.00 V, max =  +2.39 V)
               Chip Temp:   +23.0°C  (low  = -127.0°C, high = +127.0°C)
               CPU Temp:    +39.0°C  (low  = -127.0°C, high = +127.0°C)
               Sys Temp:    +29.0°C  (low  = -127.0°C, high = +127.0°C)
               cpu0_vid:   +2.050 V
 
               smsc47m1-isa-0680
               Adapter: ISA adapter
               fan1:          0 RPM  (min = 1280 RPM, div = 4)  ALARM
               fan2:       5715 RPM  (min = 1280 RPM, div = 4)
               TESTMODE
 fi
 awk '{if($1=="+2.5V:"){printf"mboard_2v5_volts.value %s\n",$2}}' $TMPFILE
 awk '{if($1=="VCore:"){printf"mboard_vcore_volts.value %s\n",$2}}' $TMPFILE
 awk '{if($1=="+3.3V:"){printf"mboard_3v3_volts.value %s\n",$2}}' $TMPFILE
 awk '{if($1=="+5V:"){printf"mboard_5v0_volts.value %s\n",$2}}' $TMPFILE
 awk '{if($1=="+12V:"){printf"mboard_12v0_volts.value %s\n",$2}}' $TMPFILE
 awk '{if($1=="VCC:"){printf"mboard_vcc_volts.value %s\n",$2}}' $TMPFILE
 awk '{if($1=="+1.5V:"){printf"mboard_1v5_volts.value %s\n",$2}}' $TMPFILE
 awk '{if($1=="+1.8V:"){printf"mboard_1v8_volts.value %s\n",$2}}' $TMPFILE
 awk '{if($1=="cpu0_vid:"){printf"mboard_cpu0vid_volts.value %s\n",$2}}' $TMPFILE
 # tidy up
 /bin/rm -f $TMPFILE

d945gclf2_temps

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

 ln -s /path/d945gclf2_temps /etc/munin/plugins/d945gclf2_temps 


 #!/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_temps.$$
 DEBUG=false
 if [ "$1" = "config" ]; then
       echo 'graph_category sensors'
       echo 'graph_title Motherboard Temperatures'
       echo 'graph_vlabel Degrees Celsius'
       echo 'mboard_chipset_temp.label Chipset Temperature'
       echo 'mboard_chipset_temp.draw LINE1'
       echo 'mboard_cpu_temp.label CPU Temperature'
       echo 'mboard_cpu_temp.draw LINE1'
       echo 'mboard_system_temp.label System Temperature'
       echo 'mboard_system_temp.draw LINE1'
       exit 0
 fi 
 touch $TMPFILE
 if [ "$DEBUG" = "false" ]; then
       sensors >> $TMPFILE
 else
       echo "Running in DEBUG mode"
       cat>> $TMPFILE <<- 'TESTMODE'
               smsc47m192-i2c-0-2d
               Adapter: SMBus I801 adapter at 2000
               +2.5V:       +2.54 V  (min =  +0.00 V, max =  +3.32 V)
               VCore:       +1.16 V  (min =  +0.00 V, max =  +2.99 V)
               +3.3V:       +3.35 V  (min =  +0.00 V, max =  +4.38 V)
               +5V:         +5.08 V  (min =  +0.00 V, max =  +6.64 V)
               +12V:       +12.19 V  (min =  +0.00 V, max = +15.94 V)
               VCC:         +3.35 V  (min =  +0.00 V, max =  +4.38 V)
               +1.5V:       +1.56 V  (min =  +0.00 V, max =  +1.99 V)
               +1.8V:       +1.78 V  (min =  +0.00 V, max =  +2.39 V)
               Chip Temp:   +23.0°C  (low  = -127.0°C, high = +127.0°C)
               CPU Temp:    +39.0°C  (low  = -127.0°C, high = +127.0°C)
               Sys Temp:    +29.0°C  (low  = -127.0°C, high = +127.0°C)
               cpu0_vid:   +2.050 V
 
               smsc47m1-isa-0680
               Adapter: ISA adapter
               fan1:          0 RPM  (min = 1280 RPM, div = 4)  ALARM
               fan2:       5715 RPM  (min = 1280 RPM, div = 4)
               TESTMODE
 fi
 awk '{if($1=="Chip" && $2 == "Temp:"){printf"mboard_chipset_temp.value %s\n",substr($3,1,1+index($3,"."))}}' $TMPFILE
 awk '{if($1=="CPU" && $2 == "Temp:"){printf"mboard_cpu_temp.value %s\n",substr($3,1,1+index($3,"."))}}' $TMPFILE
 awk '{if($1=="Sys" && $2 == "Temp:"){printf"mboard_system_temp.value %s\n",substr($3,1,1+index($3,"."))}}' $TMPFILE
 # tidy up
 /bin/rm -f $TMPFILE

d945gclf2_fans

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

 ln -s /path/d945gclf2_fans /etc/munin/plugins/d945gclf2_fans 


 #!/bin/sh
 #
 # Plugin to report D945GCLF2 motherboard fan speeds. 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 Fan Speeds'
       echo 'graph_vlabel RPM'
       echo 'mboard_fan1_speed.label Fan1 Speed'
       echo 'mboard_fan1_speed.draw LINE1'
       echo 'mboard_fan2_speed.label Fan2 Speed'
       echo 'mboard_fan2_speed.draw LINE1'
       exit 0
 fi
 touch $TMPFILE
 if [ "$DEBUG" = "false" ]; then
       sensors >> $TMPFILE
 else
       echo "Running in DEBUG mode"
       cat>> $TMPFILE <<- 'TESTMODE'
               smsc47m192-i2c-0-2d
               Adapter: SMBus I801 adapter at 2000
               +2.5V:       +2.54 V  (min =  +0.00 V, max =  +3.32 V)
               VCore:       +1.16 V  (min =  +0.00 V, max =  +2.99 V)
               +3.3V:       +3.35 V  (min =  +0.00 V, max =  +4.38 V)
               +5V:         +5.08 V  (min =  +0.00 V, max =  +6.64 V)
               +12V:       +12.19 V  (min =  +0.00 V, max = +15.94 V)
               VCC:         +3.35 V  (min =  +0.00 V, max =  +4.38 V)
               +1.5V:       +1.56 V  (min =  +0.00 V, max =  +1.99 V)
               +1.8V:       +1.78 V  (min =  +0.00 V, max =  +2.39 V)
               Chip Temp:   +23.0°C  (low  = -127.0°C, high = +127.0°C)
               CPU Temp:    +39.0°C  (low  = -127.0°C, high = +127.0°C)
               Sys Temp:    +29.0°C  (low  = -127.0°C, high = +127.0°C)
               cpu0_vid:   +2.050 V
 
               smsc47m1-isa-0680
               Adapter: ISA adapter
               fan1:          0 RPM  (min = 1280 RPM, div = 4)  ALARM
               fan2:       5715 RPM  (min = 1280 RPM, div = 4)
               TESTMODE
 fi
 awk '{if($1=="fan1:"){printf"mboard_fan1_speed.value %s\n",$2}}' $TMPFILE
 awk '{if($1=="fan2:"){printf"mboard_fan2_speed.value %s\n",$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.