DELTA SVNUWUU--- plugins/node.d.freebsd/memory.in.orig 2014-11-24 21:46:24 UTC +++ plugins/node.d.freebsd/memory.in @@ -74,4 +74,4 @@ echo wired.value $(($WIRED_COUNT*$PAGESI echo buffers.value $(($BUFFERS_COUNT)) echo cached.value $(($CACHE_COUNT*$PAGESIZE)) echo free.value $(($FREE_COUNT*$PAGESIZE)) -echo swap.value $(swapinfo -k | awk '{sum += $3}; END {print sum * 1024}') +echo swap.value $(swapinfo -k | awk '!/^Total/ && !/^Device/ {sum += $3}; END {print sum * 1024}') ENDREP DELTA 418792 411 23 SVNgg  g7ENDREP DELTA SVNDFDD#!/bin/sh # # $FreeBSD$ set -e set -u cat <<'EOM' graph_title ZFS dataset compression ratio graph_vlabel ratio graph_category ZFS graph_info This graph shows the ZFS dataset compression ratio EOM listing=$(zfs get -t filesystem -H compressratio) while read -r label _ ratio _; do clean_label=$(echo "${label}" | sed -e 's|/|__|g') echo "${clean_label}.label ${label}" echo "${clean_label}.value ${ratio%x}" done <Gow?Ʒ:qޯ*!IY-/X1ENDREP DELTA SVNfhff#!/bin/sh # # $FreeBSD$ set -e set -u cat <<'EOM' graph_title ZFS deduplication ratio graph_vlabel ratio graph_category ZFS graph_info This graph shows the ZFS pool deduplication ratio EOM listing=$(zpool get -H dedup) while read -r label _ ratio _; do echo "${label}.label ${label}" echo "${label}.value ${ratio%x}" done <