From: <st...@us...> - 2012-04-19 12:20:56
|
Revision: 6945 http://xymon.svn.sourceforge.net/xymon/?rev=6945&view=rev Author: storner Date: 2012-04-19 12:20:45 +0000 (Thu, 19 Apr 2012) Log Message: ----------- Workaround FreeBSD 7 vminfo issue Modified Paths: -------------- trunk/client/xymonclient-freebsd.sh Modified: trunk/client/xymonclient-freebsd.sh =================================================================== --- trunk/client/xymonclient-freebsd.sh 2012-04-19 12:19:59 UTC (rev 6944) +++ trunk/client/xymonclient-freebsd.sh 2012-04-19 12:20:45 UTC (rev 6945) @@ -32,8 +32,13 @@ $XYMONHOME/bin/freebsd-meminfo echo "[swapinfo]" swapinfo -k -echo "[vmtotal]" -sysctl vm.vmtotal +if test `uname -r | cut -d. -f1` -ge 8 +then + # We prefer the data from sysctl, but the output doesnt work on FreeBSD 7.2 + # So only report this if on an 8+ version. + echo "[vmtotal]" + sysctl vm.vmtotal +fi echo "[ifconfig]" ifconfig -a echo "[route]" This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |