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
363 B
14 lines
363 B
#!/bin/sh |
|
|
|
set -o noclobber |
|
old=$PWD |
|
cd $(dirname $(readlink -f "$0") |
|
cd ../ |
|
FLUXPLUGHOME=$PWD |
|
. "$FLUXPLUGHOME"/master |
|
cd $old |
|
|
|
LINE=$($DF | $SED | "$AWK" -v myhost="$myhost" -v time=`date -u +%s%N` '{sub(/\%$/,"",$5);printf "disks,host=%s,disk=%s total=%s,available=%s,used=%s,percent=%s %s\n",myhost,$1,$2,$4,$3,$5,time}') |
|
|
|
writeline "$LINE" $((2*$MAXLINES)) |
|
|
|
|