THIS KNOWLEDGE BASE HAS BEEN ARCHIVED AND IS NO LONGER BEING UPDATED
Please visit library.nagios.com/docs for the latest and most up-to-date documentation.
Home » Categories » Multiple Categories

NRPE - Linux Cached Memory Not Added to Free Memory

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.

Get 60% Off Nagios Log Server!

Did you know? Nagios provides complete monitoring of: Windows, Linux, UNIX, Servers, Websites, SNMP, DHCP, DNS, Email, Storage, Files, Apache, IIS, EC2, and more!

0 (0)
Article Rating (No Votes)
Rate this article
  • Icon PDFExport to PDF
  • Icon MS-WordExport to MS Word
Attachments Attachments
There are no attachments for this article.
Related Articles RSS Feed
NRPE - Warning: This Plugin Must Be Either Run As Root Or Setuid
Viewed 13071 times since Mon, Jul 17, 2017
NRPE - Connection Refused Or Timed Out
Viewed 10975 times since Mon, Jul 17, 2017
NRPE - Turn Off XINETD Logging On Success
Viewed 14752 times since Tue, Mar 7, 2017
NRPE - Upgrading To NRPE v3 From Source
Viewed 17654 times since Mon, Jul 11, 2016
NRPE - Remote does not support Version 3 Packets
Viewed 26415 times since Mon, Nov 27, 2017
NRPE - UNKNOWN: No Handler For That Command
Viewed 16267 times since Mon, Jul 17, 2017
NRPE - CHECK_NRPE: Error - Could Not Complete SSL Handshake
Viewed 130859 times since Fri, Jul 14, 2017
Nagios XI - Monitoring Hosts Using NRPE and NRPE Monitoring Wizard
Viewed 13903 times since Thu, Jan 28, 2016
NRPE - Configuring NRPE Commands To Accept Arguments
Viewed 68197 times since Sun, Oct 15, 2017
NRPE - CHECK_NRPE: Error Receiving Data From Daemon
Viewed 13327 times since Mon, Jul 17, 2017