| Home »
Categories »
Multiple Categories |
NRPE - Linux Cached Memory Not Added to Free Memory |
|
Article Number: 171 | Rating: Unrated | Last Updated by tlea on Tue, Feb 9, 2016 at 9:29 PM
|
Problem Description
In older versions of the Linux NRPE Agent, the memory plugin custom_check_mem did not take into account cached memory as part of the free memory and may create false warning or critical alerts, even though you are NOT low on memory.
Resolving The Problem
In order to fix this, we have updated the custom_check_mem plugin, part of our Linux agent install script by adding an optional flag [-n|--nocache]. Basically, cached memory is added to the free memory when you use the "-n" flag.
Usage:
custom_check_mem [-w|--warning]<percent free> [-c|--critical]<percent free> [-n|--nocache]
If you are downloading a new copy of our Linux agent, the updated custom_check_mem plugin will be included. If you already installed the Linux agent, you can just download the updated custom_check_mem from here. Copy the new script over the old custom_check_mem.
Next we need adjust any services to include the -n argument.
Go to Core Config Manager > Monitoring > Services
- Find the Memory Usage service and click it
- On the Common Settings tab modify the $ARG2$ field by adding a -n flag
For example, if you had:
-a '-w 20 -c 10'
Change it to:
-a '-w 20 -c 10 -n'
Click on Save and then Apply Configuration.
Final Thoughts
For any support related questions please visit the Nagios Support Forums at:
http://support.nagios.com/forum/
Special Offer For Knowledgebase Visitors! Get a huge discount on Nagios Log Server by clicking below.
Did you know? Nagios provides complete monitoring of: Windows, Linux, UNIX, Servers, Websites, SNMP, DHCP, DNS, Email, Storage, Files, Apache, IIS, EC2, and more!
|
Posted by: tlea on Wed, Jan 27, 2016 at 4:19 PM. This article has been viewed 11400 times. Filed Under: Common Problems, NRPE |
|
Have a question? Try our Forums! | Give Feedback |
0 (0)
Article Rating (No Votes)
Rate this article
|
| |
|
Attachments
There are no attachments for this article.
| Related Articles 
Nagios XI - Upgrading The Linux NRPE Agent
Viewed 10153 times since Wed, Aug 30, 2017
Nagios XI - Installing The Linux Agent
Viewed 17912 times since Wed, Jan 27, 2016
NRPE - v3 check_nrpe Config File
Viewed 32298 times since Fri, Jun 24, 2016
NRPE - Packet Size Explained
Viewed 34324 times since Thu, Jun 30, 2016
NRPE - ERROR: Missing Argument Exception
Viewed 6558 times since Mon, Jul 17, 2017
Disabling Port 113 IDENT Requests
Viewed 7683 times since Tue, Mar 12, 2019
NRPE - Agent and Plugin Explained
Viewed 77315 times since Fri, Jul 14, 2017
|
|