Created attachment 203337 [details] New port: sysutils/swapusage Very very small utility that reports the percentage of used swap space. Report can be piped to a Prometheus textfile without the need to parse the output of pstat -T or swapinfo. Attaching the shar file, this port can also be found at https://github.com/aduitsis/swapusage_freebsd_port and the actual code at https://github.com/aduitsis/freebsd_swapusage.
A commit references this bug: Author: swills Date: Sun May 26 19:32:09 UTC 2019 New revision: 502748 URL: https://svnweb.freebsd.org/changeset/ports/502748 Log: sysutils/swapusage: create port Very small utility that reports the percentage of swap space that is used. Report can be piped to a Prometheus textfile without processing. WWW: https://github.com/aduitsis/freebsd_swapusage PR: 236979 Submitted by: Athanasios Douitsis <aduitsis@douitsis.com> Changes: head/sysutils/Makefile head/sysutils/swapusage/ head/sysutils/swapusage/Makefile head/sysutils/swapusage/distinfo head/sysutils/swapusage/pkg-descr
Committed, thanks!
Many thanks!