mirror of
https://git.freebsd.org/ports.git
synced 2025-07-15 00:09:15 -04:00
While there, make ipmi_ plugins easier to use, and sort the plugins.conf file. Submitted by: bcr Sponsored by: Absolight
11 lines
397 B
Text
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); }
|