2
0
mirror of https://github.com/munin-monitoring/contrib.git synced 2018-11-08 00:59:34 +01:00

[zpool_iostat] fix whitespace issues

This commit is contained in:
Lars Kruse 2016-12-04 16:05:42 +01:00
parent 0e5e9cbdfb
commit 2ad0dfec78

View File

@ -82,12 +82,12 @@ get_pool_fieldname() {
}
if [ "$ACTION" = "config" ]; then
echo 'graph_title zpool iostat'
echo 'graph_args --base 1000 -l 0'
echo 'graph_vlabel write - read KBytes/s'
echo 'graph_category disk'
echo 'graph_scale no'
echo 'graph_info This graph shows zpool iostat'
echo 'graph_title zpool iostat'
echo 'graph_args --base 1000 -l 0'
echo 'graph_vlabel write - read KBytes/s'
echo 'graph_category disk'
echo 'graph_scale no'
echo 'graph_info This graph shows zpool iostat'
# assemble the "graph_order" as a sorted list of read/write pairs for each poll
printf "graph_order"
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.type GAUGE"
echo "${fieldname}_write.negative ${fieldname}_read"
done
exit 0
done
exit 0
fi
echo "$zlist" | while read -r pool_id; do
fieldname="$(get_pool_fieldname "pool_$pool_id")"