Page 1 of 1

Linux NRPE Memory Monitoring

Posted: Wed Apr 04, 2012 5:45 pm
by kiddbios
The default XI wizard sets up a memory monitor, but it seems to only monitor physical memory and not calculate the free physical+cached, so it is in a perpetual alarm state. Is there a better way to configure this?

Thank you,

Brad

Re: Linux NRPE Memory Monitoring

Posted: Thu Apr 05, 2012 3:35 pm
by scottwilkerson
This is based on the default plugin used.

If you make the following modification to line 59 of
/usr/local/nagios/libexec/custom_check_mem on the remote machine

Code: Select all

memoutput=`free -t -m | head -5 | tail -1`

Re: Linux NRPE Memory Monitoring

Posted: Fri Apr 06, 2012 1:06 pm
by kiddbios
Thank you. What is the name of the service I need to restart to get that to take effect?

Thanks,

Brad

Re: Linux NRPE Memory Monitoring

Posted: Fri Apr 06, 2012 1:15 pm
by scottwilkerson
You don't, just need to change the file on each remote machine you are monitoring.