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.
15 lines
369 B
15 lines
369 B
6 years ago
|
#!/bin/sh
|
||
|
|
||
|
set -o noclobber
|
||
6 years ago
|
old=$PWD
|
||
|
cd $(dirname $(readlink -f "$0"))
|
||
|
cd ../
|
||
|
FLUXPLUGHOME=$PWD
|
||
|
. "$FLUXPLUGHOME"/master
|
||
|
cd $old
|
||
6 years ago
|
|
||
|
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"
|
||
|
|