Was getting swap critical yesterday

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
billperrotta
Posts: 115
Joined: Fri Feb 21, 2014 11:44 am

Was getting swap critical yesterday

Post by billperrotta »

***** Nagios *****

Notification Type: PROBLEM

Service: Swap Usage
Host: localhost
Address: 127.0.0.1
State: CRITICAL

Date/Time: Mon Mar 10 21:09:45 EDT 2014

Additional Info:

SWAP CRITICAL - 0% free (0 MB out of 1496 MB)

Seems to have recovered.

May not need to do anything inless it comes back.


***** Nagios *****

Notification Type: RECOVERY

Service: Current Load
Host: localhost
Address: 127.0.0.1
State: OK

Date/Time: Tue Mar 11 01:02:41 EDT 2014

Additional Info:

OK - load average: 0.00, 0.05, 2.79
sreinhardt
-fno-stack-protector
Posts: 4366
Joined: Mon Nov 19, 2012 12:10 pm

Re: Was getting swap critical yesterday

Post by sreinhardt »

How much memory do you have allocated to the system? Also do you see memory increases about when this happened?
Nagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.
billperrotta
Posts: 115
Joined: Fri Feb 21, 2014 11:44 am

Re: Was getting swap critical yesterday

Post by billperrotta »

Stupid question but I haven't checked memory in linux for a while.

What is the command to check it?

And when it happens again how do i monitor it when it happens.
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Was getting swap critical yesterday

Post by abrist »

Code: Select all

free -m
You can use "check_mem" with nrpe - but it is a non standard check, you may have to get it from the exchange.
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.
billperrotta
Posts: 115
Joined: Fri Feb 21, 2014 11:44 am

Re: Was getting swap critical yesterday

Post by billperrotta »

How does this look?

ahgmonitor:~ # free -m
total used free shared buffers cached
Mem: 994 767 227 0 198 418
-/+ buffers/cache: 150 844
Swap: 1496 61 1435


This means I have about a 1 gig of Ramm correct?

Is that ok for a monitoring server?

is 767 to much used should I add Ramm if possible? not a big deal if not getting errors. I think two days ago when there was a lot of activity, It was saying out of memory but not now.
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: Was getting swap critical yesterday

Post by slansing »

That is quite a bit below what you would want on a monitoring server. Generally we recommend at least 8GB dedicated to the server, you could get away with less depending on what you are checking, how you are checking "active/passive," and how often you are checking "check/retry intervals."
Locked