ports/sysutils/munin-common/files/patch-plugins_node.d_multips__memory.in
Mathieu Arnold f7b5fefe05 Tell plugins they can use awk and do not need gawk.
While there, make ipmi_ plugins easier to use, and sort the plugins.conf
file.

Submitted by:	bcr
Sponsored by:	Absolight
2017-01-19 15:45:22 +00:00

11 lines
397 B
Text

--- plugins/node.d/multips_memory.in.orig 2017-01-18 20:25:20 UTC
+++ plugins/node.d/multips_memory.in
@@ -137,7 +137,7 @@ fi
for name in $names; do
fieldname="$(clean_fieldname "$name")"
- ps -eo $monitor,comm | gawk '
+ ps -eo $monitor,comm | awk '
BEGIN { total = "U"; } # U = Unknown.
/grep/ { next; }
$2 ~ /^'"$name"'$/ { total = total + ($1*1024); }