Change default check mem function nagios
From James Dooley's Wiki
Code to change out the check_mem script in nagios to use check_mem.pl instead. Right now values are hard coded, will continue to look in to getting this to accept values from nrpe.
Code
wget https://raw.github.com/justintime/nagios-plugins/master/check_mem/check_mem.pl -O /usr/local/nagios/libexec/check_mem.pl
chmod +x /usr/local/nagios/libexec/check_mem.pl
echo "command[check_mem]=/usr/local/nagios/libexec/check_mem.pl -w 15 -c 5 -f -C" >> /usr/local/nagios/etc/nrpe.cfg
service xinetd restart