mirror of
https://github.com/munin-monitoring/contrib.git
synced 2025-07-22 02:51:03 +00:00
[zpool_iostat] fix whitespace issues
This commit is contained in:
parent
0e5e9cbdfb
commit
2ad0dfec78
1 changed files with 8 additions and 8 deletions
|
@ -82,12 +82,12 @@ get_pool_fieldname() {
|
||||||
}
|
}
|
||||||
|
|
||||||
if [ "$ACTION" = "config" ]; then
|
if [ "$ACTION" = "config" ]; then
|
||||||
echo 'graph_title zpool iostat'
|
echo 'graph_title zpool iostat'
|
||||||
echo 'graph_args --base 1000 -l 0'
|
echo 'graph_args --base 1000 -l 0'
|
||||||
echo 'graph_vlabel write - read KBytes/s'
|
echo 'graph_vlabel write - read KBytes/s'
|
||||||
echo 'graph_category disk'
|
echo 'graph_category disk'
|
||||||
echo 'graph_scale no'
|
echo 'graph_scale no'
|
||||||
echo 'graph_info This graph shows zpool iostat'
|
echo 'graph_info This graph shows zpool iostat'
|
||||||
# assemble the "graph_order" as a sorted list of read/write pairs for each poll
|
# assemble the "graph_order" as a sorted list of read/write pairs for each poll
|
||||||
printf "graph_order"
|
printf "graph_order"
|
||||||
echo "$zlist" | while read -r pool_id; do
|
echo "$zlist" | while read -r pool_id; do
|
||||||
|
@ -105,8 +105,8 @@ if [ "$ACTION" = "config" ]; then
|
||||||
echo "${fieldname}_write.label $pool_id"
|
echo "${fieldname}_write.label $pool_id"
|
||||||
echo "${fieldname}_write.type GAUGE"
|
echo "${fieldname}_write.type GAUGE"
|
||||||
echo "${fieldname}_write.negative ${fieldname}_read"
|
echo "${fieldname}_write.negative ${fieldname}_read"
|
||||||
done
|
done
|
||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
echo "$zlist" | while read -r pool_id; do
|
echo "$zlist" | while read -r pool_id; do
|
||||||
fieldname="$(get_pool_fieldname "pool_$pool_id")"
|
fieldname="$(get_pool_fieldname "pool_$pool_id")"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue