1
0
Fork 0
mirror of https://github.com/munin-monitoring/contrib.git synced 2025-07-22 02:51:03 +00:00

replace the / by __ anyway

To make it more clear that we had a subdevice it's better to use the __ for it's replacement anyway
This commit is contained in:
Sephtex 2019-02-03 19:55:16 +01:00 committed by GitHub
parent c35eee0255
commit f72390cb13
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -33,7 +33,7 @@ fi
if [ "$1" = "config" ]; then if [ "$1" = "config" ]; then
for i in `zfs list -Hp | awk '{print $1}'`; do for i in `zfs list -Hp | awk '{print $1}'`; do
values=( $(zfs get -p usedbydataset,usedbychildren,usedbysnapshots,usedbyrefreservation,available,quota $i | awk 'BEGIN {total=0;} { if( NR==1 ) next; } !/quota/ {total=total+$3;} {print $3} END{print total;}') ) values=( $(zfs get -p usedbydataset,usedbychildren,usedbysnapshots,usedbyrefreservation,available,quota $i | awk 'BEGIN {total=0;} { if( NR==1 ) next; } !/quota/ {total=total+$3;} {print $3} END{print total;}') )
fsname=$(clean_fieldname "$i") fsname=$(clean_fieldname $(echo "$i" | sed 's/\//__/g'))
echo <<EOF "multigraph zfs_list_$fsname echo <<EOF "multigraph zfs_list_$fsname
graph_title $fsname usage graph_title $fsname usage