1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-19 08:13:21 +00:00
freebsd-ports/sysutils/munin-common/files/patch-plugins_node.d.freebsd_memory.in
Mathieu Arnold b224fa620b Fix swap accounting if there are multiple devices [1]
Add a few zfs related plugins [2]

PR:		210494 [1]
Submitted by:	bcr [2]
Reported by:	Fabian Keil [1]
Sponsored by:	Absolight
2016-08-04 14:26:56 +00:00

9 lines
469 B
Plaintext

--- 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}')