mirror of
https://github.com/munin-monitoring/contrib.git
synced 2025-07-22 02:51:03 +00:00
Plugin zfs-filesystem-graph: fix here-document
This commit is contained in:
parent
e68a0308fe
commit
94434e4bd8
1 changed files with 6 additions and 4 deletions
|
@ -41,7 +41,8 @@ read -r -a values <<<"$(zfs get -p usedbydataset,usedbychildren,usedbysnapshots,
|
||||||
|
|
||||||
if [ "$1" = "config" ]; then
|
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_order usedbydataset usedbychildren usedbysnapshots usedbyrefreservation available total quota
|
||||||
graph_args --base 1024 -r -l 0 --vertical-label Bytes
|
graph_args --base 1024 -r -l 0 --vertical-label Bytes
|
||||||
graph_info This graph shows how is used a zfs filesystems.
|
graph_info This graph shows how is used a zfs filesystems.
|
||||||
|
@ -76,16 +77,17 @@ quota.draw LINE1
|
||||||
quota.info Quota
|
quota.info Quota
|
||||||
quota.colour 555555"
|
quota.colour 555555"
|
||||||
EOF
|
EOF
|
||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo <<EOF "usedbydataset.value ${values[0]}
|
cat <<EOF
|
||||||
|
usedbydataset.value ${values[0]}
|
||||||
usedbysnapshots.value ${values[2]}
|
usedbysnapshots.value ${values[2]}
|
||||||
usedbychildren.value ${values[1]}
|
usedbychildren.value ${values[1]}
|
||||||
usedbyrefreservation.value ${values[3]}
|
usedbyrefreservation.value ${values[3]}
|
||||||
available.value ${values[4]}
|
available.value ${values[4]}
|
||||||
total.value ${values[6]}
|
total.value ${values[6]}
|
||||||
quota.value ${values[5]}"
|
quota.value ${values[5]}
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
exit 0
|
exit 0
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue