2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-01-31 18:59:33 +00:00
fhem-mirror/fhem/www/gplot/SM_DB_RAM.gplot
hexenmeister 44d0bd9fbf Visualizations (Plots) for SYSMON
git-svn-id: https://svn.fhem.de/fhem/trunk@4645 2b470e98-0d58-463d-a4d8-8e2adae1ed80
2014-01-14 16:59:42 +00:00

31 lines
804 B
Plaintext

# SYSMON
#
# Visualisierung: RAM-Nutzung
#
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 title '<L1>'
set ylabel "Ram Total / Free (MB)"
set y2label "Ram Used (MB)"
set grid
set ytics
set y2tics
set format y "%.2f"
set format y2 "%.2f"
#DbLog <SPEC1>:ram:::$val=~s/^Total..([\d.]*).*/$1/eg
#DbLog <SPEC1>:ram:::$val=~s/.*Used..([\d.]*).*/$1/eg
#DbLog <SPEC1>:ram:::$val=~s/.*Free..([\d.]*).*/$1/eg
plot \
"< awk '/ram:/ {print $1, $4}' <IN>" \
using 1:2 ls l0 axes x1y1 title 'Total' lw 1 with lines \
"< awk '/ram:/ {print $1, $4}' <IN>" \
using 1:2 ls l1 axes x1y2 title 'Used' lw 1 with lines \
"< awk '/ram:/ {print $1, $4}' <IN>" \
using 1:2 ls l2 axes x1y1 title 'Free' lw 1 with lines \