diff --git a/fhem/FHEM/42_SYSMON.pm b/fhem/FHEM/42_SYSMON.pm index 3c6a1e44f..462a150e6 100644 --- a/fhem/FHEM/42_SYSMON.pm +++ b/fhem/FHEM/42_SYSMON.pm @@ -1696,6 +1696,7 @@ If one (or more) of the multiplier is set to zero, the corresponding readings is SM_Network_wlan0.gplot
SM_CPUStat.gplot
SM_CPUStatSum.gplot
+ SM_CPUStatTotal.gplot
DbLog versions:
@@ -1797,6 +1798,11 @@ If one (or more) of the multiplier is set to zero, the corresponding readings is attr wl_sysmon_cpustat_s group RPi
attr wl_sysmon_cpustat_s room 9.99_Test
attr wl_sysmon_cpustat_s plotsize 840,420
+ define wl_sysmon_cpustatT SVG FileLog_sysmon:SM_CPUStatTotal:CURRENT
+ attr wl_sysmon_cpustatT label "CPU-Auslastung"
+ attr wl_sysmon_cpustatT group RPi
+ attr wl_sysmon_cpustatT plotsize 840,420
+ attr wl_sysmon_cpustatT room 9.99_Test
@@ -2132,6 +2138,7 @@ If one (or more) of the multiplier is set to zero, the corresponding readings is SM_Network_wlan0.gplot
SM_CPUStat.gplot
SM_CPUStatSum.gplot
+ SM_CPUStatTotal.gplot
DbLog-Versionen:
@@ -2236,6 +2243,11 @@ If one (or more) of the multiplier is set to zero, the corresponding readings is attr wl_sysmon_cpustat_s group RPi
attr wl_sysmon_cpustat_s room 9.99_Test
attr wl_sysmon_cpustat_s plotsize 840,420
+ define wl_sysmon_cpustatT SVG FileLog_sysmon:SM_CPUStatTotal:CURRENT
+ attr wl_sysmon_cpustatT label "CPU-Auslastung"
+ attr wl_sysmon_cpustatT group RPi
+ attr wl_sysmon_cpustatT plotsize 840,420
+ attr wl_sysmon_cpustatT room 9.99_Test
diff --git a/fhem/www/gplot/SM_CPUStatTotal.gplot b/fhem/www/gplot/SM_CPUStatTotal.gplot new file mode 100644 index 000000000..96732f994 --- /dev/null +++ b/fhem/www/gplot/SM_CPUStatTotal.gplot @@ -0,0 +1,31 @@ +# SYSMON +# +# Anzeige: system cpu Gesamtauslastung +# +# Daten: user nice system idle iowait irq softirq +# Beispiel aus dem Logfile: +# 2014-01-23_23:37:59 sysmon stat_cpu_percent: 32.17 0.00 18.53 37.72 0.15 0.04 11.38 +# +# +# +set terminal png transparent size crop + +set output '.png' +set xdata time +set timefmt "%Y-%m-%d_%H:%M:%S" +set xlabel " " +set ytics +set yrange [0:100] +set y2range [0:100] + +set title '' +set grid xtics y2tics + +set y2label "Auslastung %" + +#FileLog 0:stat_cpu_percent:0:$fld[3]+$fld[4]+$fld[5]+$fld[7]+$fld[8]+$fld[9] + +plot \ + "< awk '/load avg:/ {print $1, $4}' " \ + using 1:2 ls l0fill axes x1y1 title 'Gesamtauslastung' lw 1.0 with lines +