mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-01-31 12:49:34 +00:00
Neuer Plot fuer CPU-Auslastung
git-svn-id: https://svn.fhem.de/fhem/trunk@5033 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
7fd9c22310
commit
74ad5268d6
@ -1696,6 +1696,7 @@ If one (or more) of the multiplier is set to zero, the corresponding readings is
|
||||
SM_Network_wlan0.gplot<br>
|
||||
SM_CPUStat.gplot<br>
|
||||
SM_CPUStatSum.gplot<br>
|
||||
SM_CPUStatTotal.gplot<br>
|
||||
</code>
|
||||
DbLog versions:<br>
|
||||
<code>
|
||||
@ -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<br>
|
||||
attr wl_sysmon_cpustat_s room 9.99_Test<br>
|
||||
attr wl_sysmon_cpustat_s plotsize 840,420<br>
|
||||
define wl_sysmon_cpustatT SVG FileLog_sysmon:SM_CPUStatTotal:CURRENT<br>
|
||||
attr wl_sysmon_cpustatT label "CPU-Auslastung"<br>
|
||||
attr wl_sysmon_cpustatT group RPi<br>
|
||||
attr wl_sysmon_cpustatT plotsize 840,420<br>
|
||||
attr wl_sysmon_cpustatT room 9.99_Test<br>
|
||||
</code>
|
||||
</ul>
|
||||
|
||||
@ -2132,6 +2138,7 @@ If one (or more) of the multiplier is set to zero, the corresponding readings is
|
||||
SM_Network_wlan0.gplot<br>
|
||||
SM_CPUStat.gplot<br>
|
||||
SM_CPUStatSum.gplot<br>
|
||||
SM_CPUStatTotal.gplot<br>
|
||||
</code>
|
||||
DbLog-Versionen:<br>
|
||||
<code>
|
||||
@ -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<br>
|
||||
attr wl_sysmon_cpustat_s room 9.99_Test<br>
|
||||
attr wl_sysmon_cpustat_s plotsize 840,420<br>
|
||||
define wl_sysmon_cpustatT SVG FileLog_sysmon:SM_CPUStatTotal:CURRENT<br>
|
||||
attr wl_sysmon_cpustatT label "CPU-Auslastung"<br>
|
||||
attr wl_sysmon_cpustatT group RPi<br>
|
||||
attr wl_sysmon_cpustatT plotsize 840,420<br>
|
||||
attr wl_sysmon_cpustatT room 9.99_Test<br>
|
||||
</code>
|
||||
</ul>
|
||||
|
||||
|
31
fhem/www/gplot/SM_CPUStatTotal.gplot
Normal file
31
fhem/www/gplot/SM_CPUStatTotal.gplot
Normal file
@ -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 <SIZE> crop
|
||||
|
||||
set output '<OUT>.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 '<L1>'
|
||||
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}' <IN>" \
|
||||
using 1:2 ls l0fill axes x1y1 title 'Gesamtauslastung' lw 1.0 with lines
|
||||
|
Loading…
Reference in New Issue
Block a user