1
0
Fork 0
mirror of https://github.com/munin-monitoring/contrib.git synced 2025-07-24 18:07:20 +00:00

Reduce number of categories, use more generic terms

This commit is contained in:
Gabriele Pohl 2014-09-07 02:03:45 +02:00
parent e00bd6b8a0
commit 6ffd50195c
27 changed files with 31 additions and 30 deletions

View file

@ -38,7 +38,7 @@ if [ "$1" = "config" ]; then
echo 'graph_title ZFS DMU prefech stats'
echo 'graph_args --upper-limit 100 -l -100'
echo 'graph_vlabel %'
echo 'graph_category ZFS'
echo 'graph_category filesystem'
echo 'graph_info This graph shows the DMU prefech stats'
/usr/local/bin/zfs-stats -Z | awk '/Hit Ratio/ {sub(/[\t ]*/,"");sub(/:.*/,""); displayname = $0; gsub(/[ .]/,"_",$0); print $0".label "displayname"\n"$0".min 0"}'
@ -51,4 +51,4 @@ fi
# /usr/local/bin/zfs-stats and processes its output
/usr/local/bin/zfs-stats -Z | awk '/Hit Ratio/ {sub(/[\t ]*/,"");sub(/:/,""); gsub(/[ .]/,"_",$0); sub(/%/,""); sub(/_/,".",$2); print $1".value "$2}'
/usr/local/bin/zfs-stats -Z | awk '/Miss Ratio/ {sub(/[\t ]*/,"");sub(/:/,""); gsub(/[ .]/,"_",$0); sub(/%/,""); sub(/_/,".",$2); print $1".value -"$2}'
/usr/local/bin/zfs-stats -Z | awk '/Miss Ratio/ {sub(/[\t ]*/,"");sub(/:/,""); gsub(/[ .]/,"_",$0); sub(/%/,""); sub(/_/,".",$2); print $1".value -"$2}'