diff --git a/gmetric_xfs.sh b/gmetric_xfs.sh index 846bdec..68ef181 100644 --- a/gmetric_xfs.sh +++ b/gmetric_xfs.sh @@ -6,7 +6,7 @@ for dev in `awk '$3=="xfs" { print $1 }' /proc/mounts` do FRAG=$(xfs_db -r -c frag $dev | awk '{print $8}' | cut -f1 -d"." | sed 's/,/\./' | sed 's/%//' ) dev=`basename $dev` - echo "${dev}_frag: $FRAG" + // echo "${dev}_frag: $FRAG" $GMETRIC --type=float --name="${dev}_frag" --units="%" --value="${FRAG}" --group="fragmentation" done