Create check_memory.sh

copied from http://sharadchhetri.com/2013/07/02/check_memory-unable-to-read-output-nagios-nrpe/