Plugin zfs-filesystem-graph: fix here-document
This commit is contained in:
parent
e68a0308fe
commit
94434e4bd8
|
@ -41,7 +41,8 @@ read -r -a values <<<"$(zfs get -p usedbydataset,usedbychildren,usedbysnapshots,
|
|||
|
||||
if [ "$1" = "config" ]; then
|
||||
|
||||
echo <<EOF "graph_title zfs $myname
|
||||
cat <<EOF
|
||||
graph_title zfs $myname
|
||||
graph_order usedbydataset usedbychildren usedbysnapshots usedbyrefreservation available total quota
|
||||
graph_args --base 1024 -r -l 0 --vertical-label Bytes
|
||||
graph_info This graph shows how is used a zfs filesystems.
|
||||
|
@ -76,16 +77,17 @@ quota.draw LINE1
|
|||
quota.info Quota
|
||||
quota.colour 555555"
|
||||
EOF
|
||||
exit 0
|
||||
exit 0
|
||||
fi
|
||||
|
||||
echo <<EOF "usedbydataset.value ${values[0]}
|
||||
cat <<EOF
|
||||
usedbydataset.value ${values[0]}
|
||||
usedbysnapshots.value ${values[2]}
|
||||
usedbychildren.value ${values[1]}
|
||||
usedbyrefreservation.value ${values[3]}
|
||||
available.value ${values[4]}
|
||||
total.value ${values[6]}
|
||||
quota.value ${values[5]}"
|
||||
quota.value ${values[5]}
|
||||
EOF
|
||||
|
||||
exit 0
|
||||
|
|
Loading…
Reference in New Issue