***** 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
Was getting swap critical yesterday
-
sreinhardt
- -fno-stack-protector
- Posts: 4366
- Joined: Mon Nov 19, 2012 12:10 pm
Re: Was getting swap critical yesterday
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
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.
What is the command to check it?
And when it happens again how do i monitor it when it happens.
Re: Was getting swap critical yesterday
Code: Select all
free -mFormer 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.
"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
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.
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
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."