Another Memory Check Question

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
ryan_breneman
Posts: 22
Joined: Mon Nov 19, 2012 3:50 pm
Location: Lancaster, PA

Another Memory Check Question

Post by ryan_breneman »

Hello! I have another question for you regarding a linux memory check.

I'm running the following command from the nagios server against a Ubuntu 10.04.4 box:

Code: Select all

$USER1$/check_nrpe -H $HOSTADDRESS$ -t 30 -c check_mem -a '-w 20 -c 10 -n' 
I'm using the "-n" switch to include cached memory in the free space count (as shown here: http://support.nagios.com/wiki/index.ph ... ree_Memory)

The result is:

Code: Select all

CRITICAL - 2352 / 3964 MB (%) Free Memory, Used: 3543 MB, Shared: 0 MB, Buffers: 118 MB, Cached: 1931 MB
My question is why is it still reporting as critical, and also why doesn't a percentage show? I have already run apt-get install bc on this box and it says the most recent version of bc is already installed.

Thanks!
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Another Memory Check Question

Post by abrist »

The -n switch is found in the custom_mem_check plugin, and as far as I know, the switch is not available in the standard check_mem plugin. Download the custom_mem_check plugin from http://assets.nagios.com/downloads/nagi ... _check_mem
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Another Memory Check Question

Post by scottwilkerson »

the package actually needed is dc

run

Code: Select all

apt-get install dc
In Ubuntu dc stands alone, on CentOS and RHEL dc comes in bc...

I know it's confusing...
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
ryan_breneman
Posts: 22
Joined: Mon Nov 19, 2012 3:50 pm
Location: Lancaster, PA

Re: Another Memory Check Question

Post by ryan_breneman »

Thanks Scott, that was it! Installed dc and everything looks good.

Thanks again for the quick reply!
Locked