You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
369 B
14 lines
369 B
#!/bin/sh |
|
|
|
set -o noclobber |
|
old=$PWD |
|
cd $(dirname $(readlink -f "$0")) |
|
cd ../ |
|
FLUXPLUGHOME=$PWD |
|
. "$FLUXPLUGHOME"/master |
|
cd $old |
|
|
|
LINE=$("$AWK" -v myhost="$myhost" -v time=`date -u +%s%N` '{load1=$1; load5=$2; load15=$3 } END {printf "loadavg,host=%s load_1=%s,load_5=%s,load_15=%s %s\n",myhost,load1,load5,load15,time}' /proc/loadavg ) |
|
|
|
writeline "$LINE" "$MAXLINES" |
|
|
|
|