Nagios check to check for free space across RAM and swap
% ./memswapcheck -h
Usage of ./memswapcheck: -w <warning> -c <critical>
-c float
Memory used % Critical (default 5)
-d Enable debug messages
-w float
Memory used % Warning (default 10)