summaryrefslogtreecommitdiff
path: root/net-mgmt
diff options
context:
space:
mode:
Diffstat (limited to 'net-mgmt')
-rw-r--r--net-mgmt/netsaint-plugins/files/patch-plugins_check__swap.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/net-mgmt/netsaint-plugins/files/patch-plugins_check__swap.c b/net-mgmt/netsaint-plugins/files/patch-plugins_check__swap.c
new file mode 100644
index 000000000000..ca3d21b3544f
--- /dev/null
+++ b/net-mgmt/netsaint-plugins/files/patch-plugins_check__swap.c
@@ -0,0 +1,15 @@
+
+$FreeBSD$
+
+--- plugins/check_swap.c.orig
++++ plugins/check_swap.c
+@@ -15,6 +15,9 @@
+ #include "utils.h"
+
+ #define PROGNAME "check_swap"
++#define HAVE_SWAP 1
++#define SWAP_COMMAND "/usr/sbin/swapinfo -k"
++#define SWAP_FORMAT "%*s %d %*d %d"
+
+ int process_arguments(int argc, char **argv);
+ int call_getopt(int argc, char **argv);