Date: Thu, 23 Jun 2016 14:05:37 +0000 From: bugzilla-noreply@freebsd.org To: freebsd-ports-bugs@FreeBSD.org Subject: [Bug 210494] [patch] sysutils/munin-node: Fix swap accounting if there are multiple devices Message-ID: <bug-210494-13@https.bugs.freebsd.org/bugzilla/>
next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D210494 Bug ID: 210494 Summary: [patch] sysutils/munin-node: Fix swap accounting if there are multiple devices Product: Ports & Packages Version: Latest Hardware: Any OS: Any Status: New Keywords: patch Severity: Affects Only Me Priority: --- Component: Individual Port(s) Assignee: mat@FreeBSD.org Reporter: fk@fabiankeil.de Assignee: mat@FreeBSD.org Keywords: patch Flags: maintainer-feedback?(mat@FreeBSD.org) Created attachment 171714 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D171714&action= =3Dedit sysutils/munin-node: Fix swap accounting if there are multiple devices If there's more than one swap device, swapinfo adds the totals in the last line: [fk@elektrobier ~]$ swapinfo -k Device 1K-blocks Used Avail Capacity /dev/gpt/swap-ada0.eli 4194304 1775064 2419240 42% /dev/gpt/swap-ada1.eli 4194304 1714180 2480124 41% /dev/gpt/swap-ada3.eli 4194304 1012152 3182152 24% /dev/gpt/swap-ada2.eli 4194304 1012636 3181668 24% Total 16777216 5514032 11263184 33% munin's memory plugin currently simply adds the columns and therefore reports inflated values. The attached patch fixes this by letting the memory plugin filter out the "Total" line before adding the columns. Obtained from: ElectroBSD --=20 You are receiving this mail because: You are the assignee for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-210494-13>