Linux NRPE Memory Monitoring

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
kiddbios
Posts: 54
Joined: Wed Feb 01, 2012 12:57 pm

Linux NRPE Memory Monitoring

Post 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
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Linux NRPE Memory Monitoring

Post 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`
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
kiddbios
Posts: 54
Joined: Wed Feb 01, 2012 12:57 pm

Re: Linux NRPE Memory Monitoring

Post by kiddbios »

Thank you. What is the name of the service I need to restart to get that to take effect?

Thanks,

Brad
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Linux NRPE Memory Monitoring

Post by scottwilkerson »

You don't, just need to change the file on each remote machine you are monitoring.
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
Locked