summaryrefslogtreecommitdiff
path: root/net-mgmt
diff options
context:
space:
mode:
authorVolker Stolz <vs@FreeBSD.org>2005-10-24 08:39:14 +0000
committerVolker Stolz <vs@FreeBSD.org>2005-10-24 08:39:14 +0000
commite5192d0c819624fa7e0f810695401cfe6fdfead9 (patch)
treedc1af75514af393691b8b0e99337d1ec63377dc3 /net-mgmt
parentEnable SNMP and LDAP. Should be generally usefull and added value of (diff)
Hardwire 'swapinfo' details for FreeBSD since configure will fail to detect
them in a jailed (e.g. package-cluster) environment
Notes
Notes: svn path=/head/; revision=146223
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);