new Module 32_SYSSTAT to monitor system load and disk usage on linux FHEM hosts

git-svn-id: https://fhem.svn.sourceforge.net/svnroot/fhem/trunk/fhem@2656 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
justme1968
2013-02-06 21:06:04 +00:00
parent 97f3f9b0c2
commit a9adbb47a7
3 changed files with 218 additions and 0 deletions

24
www/gplot/sysstat.gplot Normal file
View File

@@ -0,0 +1,24 @@
############################
# Display the system load values
#
# Corresponding FileLog definition:
# define sysstatlog FileLog /usr/local/FHEM/var/log/sysstat-%Y-%m.log sysstat
# attr sysstatlog nrarchive 1
#
# Corresponding FileLog definition:
# define wl_sysstat weblink fileplot sysstatlog:sysstat:CURRENT
# attr wl_sysstat label "Load Min: $data{min1}, Max: $data{max1}, Aktuell: $data{currval1}"
# attr wl_sysstat room System
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 "Load"
#FileLog 4:load:0:
plot "< awk '/load:/ {print $1, $4}' <IN>" using 1:2 ls l0 axes x1y1 title 'Load' with lines