# $Id: rrd-msi-ms-9803.inc 51847 2018-03-06 14:55:07Z kristov $
# Do not edit! This file is automaticly generated by rrd-graph.xsl
msi_ms_9803_frequency_graph ()
{
last_x="$1"
if [ -f $rrd_dbpath/cpufreq/cpufreq-0.rrd -a \
-f $rrd_dbpath/cpufreq/cpufreq-1.rrd -a \
-f $rrd_dbpath/cpufreq/cpufreq-2.rrd -a \
-f $rrd_dbpath/cpufreq/cpufreq-3.rrd ]
then
max_label=$(printf "%-11.11s" "${_MN_rrd_max}")
avg_label=$(printf "%-11.11s" "${_MN_rrd_avg}")
min_label=$(printf "%-11.11s" "${_MN_rrd_min}")
last_label=$(printf "%-11.11s" "${_MN_rrd_last}")
update_label=$(printf "%-15.15s" "${_MN_rrd_update}")
var1_label=$(printf "%-15.15s" "${_HWSUPP_RC_CPU} 0")
var2_label=$(printf "%-15.15s" "${_HWSUPP_RC_CPU} 1")
var3_label=$(printf "%-15.15s" "${_HWSUPP_RC_CPU} 2")
var4_label=$(printf "%-15.15s" "${_HWSUPP_RC_CPU} 3")
/usr/bin/rrdtool graph /srv/www/img/rrd/msi_ms_9803-frequency-$last_x.png --title "MSI MS-9803 ${_HWSUPP_RT_FREQUENCY} - $last_x" \
--imginfo '' \
$rrd_width $rrd_height $rrd_common_opts --watermark "$rrd_watermark" \
--end now --start end-${last_x} \
--vertical-label "${_HWSUPP_RL_FREQUENCY}" \
--units-exponent 0 \
--font "WATERMARK:8" \
$rrd_grid_background \
DEF:var1_1=${rrd_dbpath}/cpufreq/cpufreq-0.rrd:value:AVERAGE \
DEF:var2_1=${rrd_dbpath}/cpufreq/cpufreq-1.rrd:value:AVERAGE \
DEF:var3_1=${rrd_dbpath}/cpufreq/cpufreq-2.rrd:value:AVERAGE \
DEF:var4_1=${rrd_dbpath}/cpufreq/cpufreq-3.rrd:value:AVERAGE \
CDEF:var1=var1_1,1000000,/ \
CDEF:var2=var2_1,1000000,/ \
CDEF:var3=var3_1,1000000,/ \
CDEF:var4=var4_1,1000000,/ \
VDEF:var1_max=var1,MAXIMUM \
VDEF:var1_avg=var1,AVERAGE \
VDEF:var1_min=var1,MINIMUM \
VDEF:var1_last=var1,LAST \
VDEF:var2_max=var2,MAXIMUM \
VDEF:var2_avg=var2,AVERAGE \
VDEF:var2_min=var2,MINIMUM \
VDEF:var2_last=var2,LAST \
VDEF:var3_max=var3,MAXIMUM \
VDEF:var3_avg=var3,AVERAGE \
VDEF:var3_min=var3,MINIMUM \
VDEF:var3_last=var3,LAST \
VDEF:var4_max=var4,MAXIMUM \
VDEF:var4_avg=var4,AVERAGE \
VDEF:var4_min=var4,MINIMUM \
VDEF:var4_last=var4,LAST \
COMMENT:"\t\t\t\g" \
COMMENT:"${max_label}\t\g" \
COMMENT:"${avg_label}\t\g" \
COMMENT:"${min_label}\t\g" \
COMMENT:"${last_label}\l" \
LINE1:var1#FF0000:"${var1_label}\t\g" \
GPRINT:var1_max:"%.1lf\t\t\g" \
GPRINT:var1_avg:"%.1lf\t\t\g" \
GPRINT:var1_min:"%.1lf\t\t\g" \
GPRINT:var1_last:"%.1lf\l" \
LINE1:var2#00FF00:"${var2_label}\t\g" \
GPRINT:var2_max:"%.1lf\t\t\g" \
GPRINT:var2_avg:"%.1lf\t\t\g" \
GPRINT:var2_min:"%.1lf\t\t\g" \
GPRINT:var2_last:"%.1lf\l" \
LINE1:var3#0044FF:"${var3_label}\t\g" \
GPRINT:var3_max:"%.1lf\t\t\g" \
GPRINT:var3_avg:"%.1lf\t\t\g" \
GPRINT:var3_min:"%.1lf\t\t\g" \
GPRINT:var3_last:"%.1lf\l" \
LINE1:var4#FFFF00:"${var4_label}\t\g" \
GPRINT:var4_max:"%.1lf\t\t\g" \
GPRINT:var4_avg:"%.1lf\t\t\g" \
GPRINT:var4_min:"%.1lf\t\t\g" \
GPRINT:var4_last:"%.1lf\l" \
COMMENT:"\n" \
COMMENT:"${update_label}\t${rrd_last_update}"
elif [ -f $rrd_dbpath/cpufreq/cpufreq-0.rrd -a \
-f $rrd_dbpath/cpufreq/cpufreq-1.rrd ]
then
max_label=$(printf "%-11.11s" "${_MN_rrd_max}")
avg_label=$(printf "%-11.11s" "${_MN_rrd_avg}")
min_label=$(printf "%-11.11s" "${_MN_rrd_min}")
last_label=$(printf "%-11.11s" "${_MN_rrd_last}")
update_label=$(printf "%-15.15s" "${_MN_rrd_update}")
var1_label=$(printf "%-15.15s" "${_HWSUPP_RC_CPU} 0")
var2_label=$(printf "%-15.15s" "${_HWSUPP_RC_CPU} 1")
/usr/bin/rrdtool graph /srv/www/img/rrd/msi_ms_9803-frequency-$last_x.png --title "MSI MS-9803 ${_HWSUPP_RT_FREQUENCY} - $last_x" \
--imginfo '' \
$rrd_width $rrd_height $rrd_common_opts --watermark "$rrd_watermark" \
--end now --start end-${last_x} \
--vertical-label "${_HWSUPP_RL_FREQUENCY}" \
--units-exponent 0 \
--font "WATERMARK:8" \
$rrd_grid_background \
DEF:var1_1=${rrd_dbpath}/cpufreq/cpufreq-0.rrd:value:AVERAGE \
DEF:var2_1=${rrd_dbpath}/cpufreq/cpufreq-1.rrd:value:AVERAGE \
CDEF:var1=var1_1,1000000,/ \
CDEF:var2=var2_1,1000000,/ \
VDEF:var1_max=var1,MAXIMUM \
VDEF:var1_avg=var1,AVERAGE \
VDEF:var1_min=var1,MINIMUM \
VDEF:var1_last=var1,LAST \
VDEF:var2_max=var2,MAXIMUM \
VDEF:var2_avg=var2,AVERAGE \
VDEF:var2_min=var2,MINIMUM \
VDEF:var2_last=var2,LAST \
COMMENT:"\t\t\t\g" \
COMMENT:"${max_label}\t\g" \
COMMENT:"${avg_label}\t\g" \
COMMENT:"${min_label}\t\g" \
COMMENT:"${last_label}\l" \
LINE1:var1#FF0000:"${var1_label}\t\g" \
GPRINT:var1_max:"%.1lf\t\t\g" \
GPRINT:var1_avg:"%.1lf\t\t\g" \
GPRINT:var1_min:"%.1lf\t\t\g" \
GPRINT:var1_last:"%.1lf\l" \
LINE1:var2#00FF00:"${var2_label}\t\g" \
GPRINT:var2_max:"%.1lf\t\t\g" \
GPRINT:var2_avg:"%.1lf\t\t\g" \
GPRINT:var2_min:"%.1lf\t\t\g" \
GPRINT:var2_last:"%.1lf\l" \
COMMENT:"\n" \
COMMENT:"${update_label}\t${rrd_last_update}"
elif [ -f $rrd_dbpath/cpufreq/cpufreq-0.rrd ]
then
max_label=$(printf "%-11.11s" "${_MN_rrd_max}")
avg_label=$(printf "%-11.11s" "${_MN_rrd_avg}")
min_label=$(printf "%-11.11s" "${_MN_rrd_min}")
last_label=$(printf "%-11.11s" "${_MN_rrd_last}")
update_label=$(printf "%-15.15s" "${_MN_rrd_update}")
var1_label=$(printf "%-15.15s" "${_HWSUPP_RC_CPU} 0")
/usr/bin/rrdtool graph /srv/www/img/rrd/msi_ms_9803-frequency-$last_x.png --title "MSI MS-9803 ${_HWSUPP_RT_FREQUENCY} - $last_x" \
--imginfo '' \
$rrd_width $rrd_height $rrd_common_opts --watermark "$rrd_watermark" \
--end now --start end-${last_x} \
--vertical-label "${_HWSUPP_RL_FREQUENCY}" \
--units-exponent 0 \
--font "WATERMARK:8" \
$rrd_grid_background \
DEF:var1_1=${rrd_dbpath}/cpufreq/cpufreq-0.rrd:value:AVERAGE \
CDEF:var1=var1_1,1000000,/ \
VDEF:var1_max=var1,MAXIMUM \
VDEF:var1_avg=var1,AVERAGE \
VDEF:var1_min=var1,MINIMUM \
VDEF:var1_last=var1,LAST \
COMMENT:"\t\t\t\g" \
COMMENT:"${max_label}\t\g" \
COMMENT:"${avg_label}\t\g" \
COMMENT:"${min_label}\t\g" \
COMMENT:"${last_label}\l" \
LINE1:var1#FF0000:"${var1_label}\t\g" \
GPRINT:var1_max:"%.1lf\t\t\g" \
GPRINT:var1_avg:"%.1lf\t\t\g" \
GPRINT:var1_min:"%.1lf\t\t\g" \
GPRINT:var1_last:"%.1lf\l" \
COMMENT:"\n" \
COMMENT:"${update_label}\t${rrd_last_update}"
else
show_error "$_MN_err" "no rrd-database for MSI-MS-9803 ${_HWSUPP_RT_FREQUENCY}"
fi
}
msi_ms_9803_coretemp_graph ()
{
last_x="$1"
if [ -f $rrd_dbpath/sensors-coretemp-isa-0000/temperature-temp2.rrd -a \
-f $rrd_dbpath/sensors-coretemp-isa-0000/temperature-temp3.rrd -a \
-f $rrd_dbpath/sensors-coretemp-isa-0000/temperature-temp4.rrd -a \
-f $rrd_dbpath/sensors-coretemp-isa-0000/temperature-temp5.rrd ]
then
max_label=$(printf "%-11.11s" "${_MN_rrd_max}")
avg_label=$(printf "%-11.11s" "${_MN_rrd_avg}")
min_label=$(printf "%-11.11s" "${_MN_rrd_min}")
last_label=$(printf "%-11.11s" "${_MN_rrd_last}")
update_label=$(printf "%-15.15s" "${_MN_rrd_update}")
var_temp2_label=$(printf "%-15.15s" "${_HWSUPP_RC_CPU} 0")
var_temp3_label=$(printf "%-15.15s" "${_HWSUPP_RC_CPU} 1")
var_temp4_label=$(printf "%-15.15s" "${_HWSUPP_RC_CPU} 2")
var_temp5_label=$(printf "%-15.15s" "${_HWSUPP_RC_CPU} 3")
/usr/bin/rrdtool graph /srv/www/img/rrd/msi_ms_9803-coretemp-$last_x.png --title "MSI MS-9803 Core-${_HWSUPP_TEMP} - $last_x" \
--imginfo '' \
$rrd_width $rrd_height $rrd_common_opts --watermark "$rrd_watermark" \
--end now --start end-${last_x} \
--vertical-label "Core-${_HWSUPP_RL_TEMP}" \
--font "WATERMARK:8" \
$rrd_grid_background \
DEF:var_temp2=${rrd_dbpath}/sensors-coretemp-isa-0000/temperature-temp2.rrd:value:AVERAGE \
DEF:var_temp3=${rrd_dbpath}/sensors-coretemp-isa-0000/temperature-temp3.rrd:value:AVERAGE \
DEF:var_temp4=${rrd_dbpath}/sensors-coretemp-isa-0000/temperature-temp4.rrd:value:AVERAGE \
DEF:var_temp5=${rrd_dbpath}/sensors-coretemp-isa-0000/temperature-temp5.rrd:value:AVERAGE \
VDEF:var_temp2_max=var_temp2,MAXIMUM \
VDEF:var_temp2_avg=var_temp2,AVERAGE \
VDEF:var_temp2_min=var_temp2,MINIMUM \
VDEF:var_temp2_last=var_temp2,LAST \
VDEF:var_temp3_max=var_temp3,MAXIMUM \
VDEF:var_temp3_avg=var_temp3,AVERAGE \
VDEF:var_temp3_min=var_temp3,MINIMUM \
VDEF:var_temp3_last=var_temp3,LAST \
VDEF:var_temp4_max=var_temp4,MAXIMUM \
VDEF:var_temp4_avg=var_temp4,AVERAGE \
VDEF:var_temp4_min=var_temp4,MINIMUM \
VDEF:var_temp4_last=var_temp4,LAST \
VDEF:var_temp5_max=var_temp5,MAXIMUM \
VDEF:var_temp5_avg=var_temp5,AVERAGE \
VDEF:var_temp5_min=var_temp5,MINIMUM \
VDEF:var_temp5_last=var_temp5,LAST \
COMMENT:"\t\t\t\g" \
COMMENT:"${max_label}\t\g" \
COMMENT:"${avg_label}\t\g" \
COMMENT:"${min_label}\t\g" \
COMMENT:"${last_label}\l" \
LINE1:var_temp2#FF0000:"${var_temp2_label}\t\g" \
GPRINT:var_temp2_max:"%.1lf\t\t\g" \
GPRINT:var_temp2_avg:"%.1lf\t\t\g" \
GPRINT:var_temp2_min:"%.1lf\t\t\g" \
GPRINT:var_temp2_last:"%.1lf\l" \
LINE1:var_temp3#00FF00:"${var_temp3_label}\t\g" \
GPRINT:var_temp3_max:"%.1lf\t\t\g" \
GPRINT:var_temp3_avg:"%.1lf\t\t\g" \
GPRINT:var_temp3_min:"%.1lf\t\t\g" \
GPRINT:var_temp3_last:"%.1lf\l" \
LINE1:var_temp4#0044FF:"${var_temp4_label}\t\g" \
GPRINT:var_temp4_max:"%.1lf\t\t\g" \
GPRINT:var_temp4_avg:"%.1lf\t\t\g" \
GPRINT:var_temp4_min:"%.1lf\t\t\g" \
GPRINT:var_temp4_last:"%.1lf\l" \
LINE1:var_temp5#FFFF00:"${var_temp5_label}\t\g" \
GPRINT:var_temp5_max:"%.1lf\t\t\g" \
GPRINT:var_temp5_avg:"%.1lf\t\t\g" \
GPRINT:var_temp5_min:"%.1lf\t\t\g" \
GPRINT:var_temp5_last:"%.1lf\l" \
COMMENT:"\n" \
COMMENT:"${update_label}\t${rrd_last_update}"
elif [ -f $rrd_dbpath/sensors-coretemp-isa-0000/temperature-temp2.rrd -a \
-f $rrd_dbpath/sensors-coretemp-isa-0000/temperature-temp3.rrd ]
then
max_label=$(printf "%-11.11s" "${_MN_rrd_max}")
avg_label=$(printf "%-11.11s" "${_MN_rrd_avg}")
min_label=$(printf "%-11.11s" "${_MN_rrd_min}")
last_label=$(printf "%-11.11s" "${_MN_rrd_last}")
update_label=$(printf "%-15.15s" "${_MN_rrd_update}")
var_temp2_label=$(printf "%-15.15s" "${_HWSUPP_RC_CPU} 0")
var_temp3_label=$(printf "%-15.15s" "${_HWSUPP_RC_CPU} 1")
/usr/bin/rrdtool graph /srv/www/img/rrd/generic_acpi_coretemp-coretemp-$last_x.png --title "GENERIC-ACPI and CORETEMP Core-${_HWSUPP_TEMP} - $last_x" \
--imginfo '' \
$rrd_width $rrd_height $rrd_common_opts --watermark "$rrd_watermark" \
--end now --start end-${last_x} \
--vertical-label "Core-${_HWSUPP_RL_TEMP}" \
--font "WATERMARK:8" \
$rrd_grid_background \
DEF:var_temp2=${rrd_dbpath}/sensors-coretemp-isa-0000/temperature-temp2.rrd:value:AVERAGE \
DEF:var_temp3=${rrd_dbpath}/sensors-coretemp-isa-0000/temperature-temp3.rrd:value:AVERAGE \
VDEF:var_temp2_max=var_temp2,MAXIMUM \
VDEF:var_temp2_avg=var_temp2,AVERAGE \
VDEF:var_temp2_min=var_temp2,MINIMUM \
VDEF:var_temp2_last=var_temp2,LAST \
VDEF:var_temp3_max=var_temp3,MAXIMUM \
VDEF:var_temp3_avg=var_temp3,AVERAGE \
VDEF:var_temp3_min=var_temp3,MINIMUM \
VDEF:var_temp3_last=var_temp3,LAST \
COMMENT:"\t\t\t\g" \
COMMENT:"${max_label}\t\g" \
COMMENT:"${avg_label}\t\g" \
COMMENT:"${min_label}\t\g" \
COMMENT:"${last_label}\l" \
LINE1:var_temp2#FF0000:"${var_temp2_label}\t\g" \
GPRINT:var_temp2_max:"%.1lf\t\t\g" \
GPRINT:var_temp2_avg:"%.1lf\t\t\g" \
GPRINT:var_temp2_min:"%.1lf\t\t\g" \
GPRINT:var_temp2_last:"%.1lf\l" \
LINE1:var_temp3#00FF00:"${var_temp3_label}\t\g" \
GPRINT:var_temp3_max:"%.1lf\t\t\g" \
GPRINT:var_temp3_avg:"%.1lf\t\t\g" \
GPRINT:var_temp3_min:"%.1lf\t\t\g" \
GPRINT:var_temp3_last:"%.1lf\l" \
COMMENT:"\n" \
COMMENT:"${update_label}\t${rrd_last_update}"
elif [ -f $rrd_dbpath/sensors-coretemp-isa-0000/temperature-temp2.rrd ]
then
max_label=$(printf "%-11.11s" "${_MN_rrd_max}")
avg_label=$(printf "%-11.11s" "${_MN_rrd_avg}")
min_label=$(printf "%-11.11s" "${_MN_rrd_min}")
last_label=$(printf "%-11.11s" "${_MN_rrd_last}")
update_label=$(printf "%-15.15s" "${_MN_rrd_update}")
var_temp2_label=$(printf "%-15.15s" "${_HWSUPP_RC_CPU} 0")
/usr/bin/rrdtool graph /srv/www/img/rrd/generic_acpi_coretemp-coretemp-$last_x.png --title "GENERIC-ACPI and CORETEMP Core-${_HWSUPP_TEMP} - $last_x" \
--imginfo '' \
$rrd_width $rrd_height $rrd_common_opts --watermark "$rrd_watermark" \
--end now --start end-${last_x} \
--vertical-label "Core-${_HWSUPP_RL_TEMP}" \
--font "WATERMARK:8" \
$rrd_grid_background \
DEF:var_temp2=${rrd_dbpath}/sensors-coretemp-isa-0000/temperature-temp2.rrd:value:AVERAGE \
VDEF:var_temp2_max=var_temp2,MAXIMUM \
VDEF:var_temp2_avg=var_temp2,AVERAGE \
VDEF:var_temp2_min=var_temp2,MINIMUM \
VDEF:var_temp2_last=var_temp2,LAST \
COMMENT:"\t\t\t\g" \
COMMENT:"${max_label}\t\g" \
COMMENT:"${avg_label}\t\g" \
COMMENT:"${min_label}\t\g" \
COMMENT:"${last_label}\l" \
LINE1:var_temp2#FF0000:"${var_temp2_label}\t\g" \
GPRINT:var_temp2_max:"%.1lf\t\t\g" \
GPRINT:var_temp2_avg:"%.1lf\t\t\g" \
GPRINT:var_temp2_min:"%.1lf\t\t\g" \
GPRINT:var_temp2_last:"%.1lf\l" \
COMMENT:"\n" \
COMMENT:"${update_label}\t${rrd_last_update}"
else
show_error "$_MN_err" "no rrd-database for MSI-MS-9803 Core-${_HWSUPP_TEMP}"
fi
}
msi_ms_9803_temp_graph ()
{
last_x="$1"
if [ -f $rrd_dbpath/sensors-w83627dhg-isa-0a10/temperature-temp2.rrd -a \
-f $rrd_dbpath/sensors-w83627dhg-isa-0a10/temperature-temp3.rrd -a \
-f $rrd_dbpath/sensors-w83627dhg-isa-0a10/temperature-temp1.rrd ]
then
max_label=$(printf "%-11.11s" "${_MN_rrd_max}")
avg_label=$(printf "%-11.11s" "${_MN_rrd_avg}")
min_label=$(printf "%-11.11s" "${_MN_rrd_min}")
last_label=$(printf "%-11.11s" "${_MN_rrd_last}")
update_label=$(printf "%-15.15s" "${_MN_rrd_update}")
var_temp2_label=$(printf "%-15.15s" "${_HWSUPP_RC_CPU} 0")
var_temp3_label=$(printf "%-15.15s" "${_HWSUPP_RC_CPU} 1")
var_temp1_label=$(printf "%-15.15s" "${_HWSUPP_RC_SYS}")
/usr/bin/rrdtool graph /srv/www/img/rrd/msi_ms_9803-temp-$last_x.png --title "MSI MS-9803 MB-${_HWSUPP_TEMP} - $last_x" \
--imginfo '' \
$rrd_width $rrd_height $rrd_common_opts --watermark "$rrd_watermark" \
--end now --start end-${last_x} \
--vertical-label "${_HWSUPP_RL_TEMP}" \
--font "WATERMARK:8" \
$rrd_grid_background \
DEF:var_temp2=${rrd_dbpath}/sensors-w83627dhg-isa-0a10/temperature-temp2.rrd:value:AVERAGE \
DEF:var_temp3=${rrd_dbpath}/sensors-w83627dhg-isa-0a10/temperature-temp3.rrd:value:AVERAGE \
DEF:var_temp1=${rrd_dbpath}/sensors-w83627dhg-isa-0a10/temperature-temp1.rrd:value:AVERAGE \
VDEF:var_temp2_max=var_temp2,MAXIMUM \
VDEF:var_temp2_avg=var_temp2,AVERAGE \
VDEF:var_temp2_min=var_temp2,MINIMUM \
VDEF:var_temp2_last=var_temp2,LAST \
VDEF:var_temp3_max=var_temp3,MAXIMUM \
VDEF:var_temp3_avg=var_temp3,AVERAGE \
VDEF:var_temp3_min=var_temp3,MINIMUM \
VDEF:var_temp3_last=var_temp3,LAST \
VDEF:var_temp1_max=var_temp1,MAXIMUM \
VDEF:var_temp1_avg=var_temp1,AVERAGE \
VDEF:var_temp1_min=var_temp1,MINIMUM \
VDEF:var_temp1_last=var_temp1,LAST \
COMMENT:"\t\t\t\g" \
COMMENT:"${max_label}\t\g" \
COMMENT:"${avg_label}\t\g" \
COMMENT:"${min_label}\t\g" \
COMMENT:"${last_label}\l" \
LINE1:var_temp2#FF0000:"${var_temp2_label}\t\g" \
GPRINT:var_temp2_max:"%.1lf\t\t\g" \
GPRINT:var_temp2_avg:"%.1lf\t\t\g" \
GPRINT:var_temp2_min:"%.1lf\t\t\g" \
GPRINT:var_temp2_last:"%.1lf\l" \
LINE1:var_temp3#00FF00:"${var_temp3_label}\t\g" \
GPRINT:var_temp3_max:"%.1lf\t\t\g" \
GPRINT:var_temp3_avg:"%.1lf\t\t\g" \
GPRINT:var_temp3_min:"%.1lf\t\t\g" \
GPRINT:var_temp3_last:"%.1lf\l" \
LINE1:var_temp1#0044FF:"${var_temp1_label}\t\g" \
GPRINT:var_temp1_max:"%.1lf\t\t\g" \
GPRINT:var_temp1_avg:"%.1lf\t\t\g" \
GPRINT:var_temp1_min:"%.1lf\t\t\g" \
GPRINT:var_temp1_last:"%.1lf\l" \
COMMENT:"\n" \
COMMENT:"${update_label}\t${rrd_last_update}"
else
show_error "$_MN_err" "no rrd-database for MSI-MS-9803 MB-${_HWSUPP_TEMP}"
fi
}
msi_ms_9803_fan_graph ()
{
last_x="$1"
if [ -f $rrd_dbpath/sensors-w83627dhg-isa-0a10/fanspeed-fan2.rrd -a \
-f $rrd_dbpath/sensors-w83627dhg-isa-0a10/fanspeed-fan1.rrd ]
then
max_label=$(printf "%-11.11s" "${_MN_rrd_max}")
avg_label=$(printf "%-11.11s" "${_MN_rrd_avg}")
min_label=$(printf "%-11.11s" "${_MN_rrd_min}")
last_label=$(printf "%-11.11s" "${_MN_rrd_last}")
update_label=$(printf "%-15.15s" "${_MN_rrd_update}")
var_fan2_label=$(printf "%-15.15s" "${_HWSUPP_RC_CPU}")
var_fan1_label=$(printf "%-15.15s" "${_HWSUPP_RC_MB}")
/usr/bin/rrdtool graph /srv/www/img/rrd/msi_ms_9803-fan-$last_x.png --title "MSI MS-9803 MB-${_HWSUPP_FANSPEED} - $last_x" \
--imginfo '' \
$rrd_width $rrd_height $rrd_common_opts --watermark "$rrd_watermark" \
--end now --start end-${last_x} \
--vertical-label "${_HWSUPP_RL_FANSPEED}" \
--font "WATERMARK:8" \
$rrd_grid_background \
DEF:var_fan2=${rrd_dbpath}/sensors-w83627dhg-isa-0a10/fanspeed-fan2.rrd:value:AVERAGE \
DEF:var_fan1=${rrd_dbpath}/sensors-w83627dhg-isa-0a10/fanspeed-fan1.rrd:value:AVERAGE \
VDEF:var_fan2_max=var_fan2,MAXIMUM \
VDEF:var_fan2_avg=var_fan2,AVERAGE \
VDEF:var_fan2_min=var_fan2,MINIMUM \
VDEF:var_fan2_last=var_fan2,LAST \
VDEF:var_fan1_max=var_fan1,MAXIMUM \
VDEF:var_fan1_avg=var_fan1,AVERAGE \
VDEF:var_fan1_min=var_fan1,MINIMUM \
VDEF:var_fan1_last=var_fan1,LAST \
COMMENT:"\t\t\t\g" \
COMMENT:"${max_label}\t\g" \
COMMENT:"${avg_label}\t\g" \
COMMENT:"${min_label}\t\g" \
COMMENT:"${last_label}\l" \
LINE1:var_fan2#FF0000:"${var_fan2_label}\t\g" \
GPRINT:var_fan2_max:"%.1lf\t\t\g" \
GPRINT:var_fan2_avg:"%.1lf\t\t\g" \
GPRINT:var_fan2_min:"%.1lf\t\t\g" \
GPRINT:var_fan2_last:"%.1lf\l" \
LINE1:var_fan1#00FF00:"${var_fan1_label}\t\g" \
GPRINT:var_fan1_max:"%.1lf\t\t\g" \
GPRINT:var_fan1_avg:"%.1lf\t\t\g" \
GPRINT:var_fan1_min:"%.1lf\t\t\g" \
GPRINT:var_fan1_last:"%.1lf\l" \
COMMENT:"\n" \
COMMENT:"${update_label}\t${rrd_last_update}"
else
show_error "$_MN_err" "no rrd-database for MSI-MS-9803 MB-${_HWSUPP_FANSPEED}"
fi
}
msi_ms_9803_voltage_graph ()
{
last_x="$1"
if [ -f $rrd_dbpath/sensors-w83627dhg-isa-0a10/voltage-in1.rrd -a \
-f $rrd_dbpath/sensors-w83627dhg-isa-0a10/voltage-in2.rrd -a \
-f $rrd_dbpath/sensors-w83627dhg-isa-0a10/voltage-in3.rrd -a \
-f $rrd_dbpath/sensors-w83627dhg-isa-0a10/voltage-in4.rrd -a \
-f $rrd_dbpath/sensors-w83627dhg-isa-0a10/voltage-in5.rrd -a \
-f $rrd_dbpath/sensors-w83627dhg-isa-0a10/voltage-in6.rrd -a \
-f $rrd_dbpath/sensors-w83627dhg-isa-0a10/voltage-in7.rrd -a \
-f $rrd_dbpath/sensors-w83627dhg-isa-0a10/voltage-in8.rrd ]
then
max_label=$(printf "%-11.11s" "${_MN_rrd_max}")
avg_label=$(printf "%-11.11s" "${_MN_rrd_avg}")
min_label=$(printf "%-11.11s" "${_MN_rrd_min}")
last_label=$(printf "%-11.11s" "${_MN_rrd_last}")
update_label=$(printf "%-15.15s" "${_MN_rrd_update}")
var_in1_label=$(printf "%-15.15s" "${_HWSUPP_RC_VCORE}")
var_in2_label=$(printf "%-15.15s" "AVCC ${_HWSUPP_RC_V3_3}")
var_in3_label=$(printf "%-15.15s" "3VCC ${_HWSUPP_RC_V3_3}")
var_in4_label=$(printf "%-15.15s" "${_HWSUPP_RC_V12}")
var_in5_label=$(printf "%-15.15s" "${_HWSUPP_RC_V5}")
var_in6_label=$(printf "%-15.15s" "VCC RAM")
var_in7_label=$(printf "%-15.15s" "${_HWSUPP_RC_V3SB}")
var_in8_label=$(printf "%-15.15s" "${_HWSUPP_RC_VBAT}")
/usr/bin/rrdtool graph /srv/www/img/rrd/msi_ms_9803-voltage-$last_x.png --title "MSI MS-9803 MB-${_HWSUPP_VOLTAGE} - $last_x" \
--imginfo '' \
$rrd_width $rrd_height $rrd_common_opts --watermark "$rrd_watermark" \
--end now --start end-${last_x} \
--vertical-label "${_HWSUPP_RL_VOLTAGE}" \
--font "WATERMARK:8" \
$rrd_grid_background \
DEF:var_in1=${rrd_dbpath}/sensors-w83627dhg-isa-0a10/voltage-in1.rrd:value:AVERAGE \
DEF:var_in2=${rrd_dbpath}/sensors-w83627dhg-isa-0a10/voltage-in2.rrd:value:AVERAGE \
DEF:var_in3=${rrd_dbpath}/sensors-w83627dhg-isa-0a10/voltage-in3.rrd:value:AVERAGE \
DEF:var_in4=${rrd_dbpath}/sensors-w83627dhg-isa-0a10/voltage-in4.rrd:value:AVERAGE \
DEF:var_in5=${rrd_dbpath}/sensors-w83627dhg-isa-0a10/voltage-in5.rrd:value:AVERAGE \
DEF:var_in6=${rrd_dbpath}/sensors-w83627dhg-isa-0a10/voltage-in6.rrd:value:AVERAGE \
DEF:var_in7=${rrd_dbpath}/sensors-w83627dhg-isa-0a10/voltage-in7.rrd:value:AVERAGE \
DEF:var_in8=${rrd_dbpath}/sensors-w83627dhg-isa-0a10/voltage-in8.rrd:value:AVERAGE \
VDEF:var_in1_max=var_in1,MAXIMUM \
VDEF:var_in1_avg=var_in1,AVERAGE \
VDEF:var_in1_min=var_in1,MINIMUM \
VDEF:var_in1_last=var_in1,LAST \
VDEF:var_in2_max=var_in2,MAXIMUM \
VDEF:var_in2_avg=var_in2,AVERAGE \
VDEF:var_in2_min=var_in2,MINIMUM \
VDEF:var_in2_last=var_in2,LAST \
VDEF:var_in3_max=var_in3,MAXIMUM \
VDEF:var_in3_avg=var_in3,AVERAGE \
VDEF:var_in3_min=var_in3,MINIMUM \
VDEF:var_in3_last=var_in3,LAST \
VDEF:var_in4_max=var_in4,MAXIMUM \
VDEF:var_in4_avg=var_in4,AVERAGE \
VDEF:var_in4_min=var_in4,MINIMUM \
VDEF:var_in4_last=var_in4,LAST \
VDEF:var_in5_max=var_in5,MAXIMUM \
VDEF:var_in5_avg=var_in5,AVERAGE \
VDEF:var_in5_min=var_in5,MINIMUM \
VDEF:var_in5_last=var_in5,LAST \
VDEF:var_in6_max=var_in6,MAXIMUM \
VDEF:var_in6_avg=var_in6,AVERAGE \
VDEF:var_in6_min=var_in6,MINIMUM \
VDEF:var_in6_last=var_in6,LAST \
VDEF:var_in7_max=var_in7,MAXIMUM \
VDEF:var_in7_avg=var_in7,AVERAGE \
VDEF:var_in7_min=var_in7,MINIMUM \
VDEF:var_in7_last=var_in7,LAST \
VDEF:var_in8_max=var_in8,MAXIMUM \
VDEF:var_in8_avg=var_in8,AVERAGE \
VDEF:var_in8_min=var_in8,MINIMUM \
VDEF:var_in8_last=var_in8,LAST \
COMMENT:"\t\t\t\g" \
COMMENT:"${max_label}\t\g" \
COMMENT:"${avg_label}\t\g" \
COMMENT:"${min_label}\t\g" \
COMMENT:"${last_label}\l" \
LINE1:var_in1#FF0000:"${var_in1_label}\t\g" \
GPRINT:var_in1_max:"%.1lf\t\t\g" \
GPRINT:var_in1_avg:"%.1lf\t\t\g" \
GPRINT:var_in1_min:"%.1lf\t\t\g" \
GPRINT:var_in1_last:"%.1lf\l" \
LINE1:var_in2#00FF00:"${var_in2_label}\t\g" \
GPRINT:var_in2_max:"%.1lf\t\t\g" \
GPRINT:var_in2_avg:"%.1lf\t\t\g" \
GPRINT:var_in2_min:"%.1lf\t\t\g" \
GPRINT:var_in2_last:"%.1lf\l" \
LINE1:var_in3#FFFF00:"${var_in3_label}\t\g" \
GPRINT:var_in3_max:"%.1lf\t\t\g" \
GPRINT:var_in3_avg:"%.1lf\t\t\g" \
GPRINT:var_in3_min:"%.1lf\t\t\g" \
GPRINT:var_in3_last:"%.1lf\l" \
LINE1:var_in4#FF00FF:"${var_in4_label}\t\g" \
GPRINT:var_in4_max:"%.1lf\t\t\g" \
GPRINT:var_in4_avg:"%.1lf\t\t\g" \
GPRINT:var_in4_min:"%.1lf\t\t\g" \
GPRINT:var_in4_last:"%.1lf\l" \
LINE1:var_in5#00FFFF:"${var_in5_label}\t\g" \
GPRINT:var_in5_max:"%.1lf\t\t\g" \
GPRINT:var_in5_avg:"%.1lf\t\t\g" \
GPRINT:var_in5_min:"%.1lf\t\t\g" \
GPRINT:var_in5_last:"%.1lf\l" \
LINE1:var_in6#FF8800:"${var_in6_label}\t\g" \
GPRINT:var_in6_max:"%.1lf\t\t\g" \
GPRINT:var_in6_avg:"%.1lf\t\t\g" \
GPRINT:var_in6_min:"%.1lf\t\t\g" \
GPRINT:var_in7_last:"%.1lf\l" \
LINE1:var_in7#008800:"${var_in7_label}\t\g" \
GPRINT:var_in7_max:"%.1lf\t\t\g" \
GPRINT:var_in7_avg:"%.1lf\t\t\g" \
GPRINT:var_in7_min:"%.1lf\t\t\g" \
GPRINT:var_in7_last:"%.1lf\l" \
LINE1:var_in8#888888:"${var_in8_label}\t\g" \
GPRINT:var_in8_max:"%.1lf\t\t\g" \
GPRINT:var_in8_avg:"%.1lf\t\t\g" \
GPRINT:var_in8_min:"%.1lf\t\t\g" \
GPRINT:var_in8_last:"%.1lf\l" \
COMMENT:"\n" \
COMMENT:"${update_label}\t${rrd_last_update}"
else
show_error "$_MN_err" "no rrd-database for MSI-MS-9803 MB-${_HWSUPP_VOLTAGE}"
fi
}
# _oOo_