Difference between revisions of "Change default check mem function nagios"

From James Dooley's Wiki
Jump to: navigation, search
(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...")
 
Line 1: Line 1:
 +
[[Category:Knowledge]]
 
Code to change out the check_mem script in nagios to use check_mem.pl instead.
 
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.
 
Right now values are hard coded, will continue to look in to getting this to accept values from nrpe.

Revision as of 17:38, 17 February 2012

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