summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: f8d47eb)
raw | patch | inline | side by side (parent: f8d47eb)
author | Subhendu Ghosh <sghosh@users.sourceforge.net> | |
Tue, 18 Feb 2003 03:17:37 +0000 (03:17 +0000) | ||
committer | Subhendu Ghosh <sghosh@users.sourceforge.net> | |
Tue, 18 Feb 2003 03:17:37 +0000 (03:17 +0000) |
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@333 f882894a-f735-0410-b71e-b25c423dba1c
configure.in | patch | blob | history |
diff --git a/configure.in b/configure.in
index c9a9615becaf5d28f8a0aa285869c509697da4a4..dc5f28122785eed5f293444725e7afb2b5aabef1 100644 (file)
--- a/configure.in
+++ b/configure.in
echo "** Could not find mailq or eqivalent"
fi
+dnl SWAP info required is amount allocated/available and amount free
+dnl The plugin works through all the swap devices and adds up the total swap
+dnl available.
+
dnl dunno why this does not work below - use hack (kbd)
dnl fine on linux, broken on solaris
dnl if /bin/test -e "/proc/meminfo"
echo " using Solaris format"
fi
EXTRAS="$EXTRAS check_swap"
-elif [swapinfo -k 2>&1 | egrep -i "Device" >/dev/null]
+elif [swapinfo -k 2>&1 | egrep -i "^Device" >/dev/null]
then
echo "found swapinfo command"
AC_DEFINE(HAVE_SWAP,1,[Define if swap/swapinfo command is found])
echo " using FreeBSD format"
fi
EXTRAS="$EXTRAS check_swap"
-elif [swapinfo -d 2>/dev/null | egrep -i "^TYPE +AVAIL +USED +FREE" >/dev/null]
+elif [swapinfo -dfM 2>/dev/null | egrep -i "^TYPE +AVAIL +USED +FREE" >/dev/null]
then
AC_DEFINE(HAVE_SWAP,1,[Define if swap/swapinfo command is found])
AC_PATH_PROG(PATH_TO_SWAP,swapinfo)
- AC_DEFINE_UNQUOTED(SWAP_COMMAND,"/bin/sh '$PATH_TO_SWAP -d | /bin/tail -l +2'",[Path to swap/swapinfo binary, with any args])
+ AC_DEFINE_UNQUOTED(SWAP_COMMAND,"$PATH_TO_SWAP -dfM",[Path to swap/swapinfo binary, with any args])
AC_DEFINE_UNQUOTED(SWAP_FORMAT,["%*s %d %*d %d"],[Format string for parsing swap output ])
echo " using HP-UX format HP-UX"
fi