Change default check mem function nagios

From James Dooley's Wiki
Revision as of 14:19, 8 February 2012 by Smsldoo (talk | contribs) (Created page with "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 nrp...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

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

[bash,n] 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