SWAP CRITICAL
SWAP CRITICAL
Just got this email....
=======
***** Nagios *****
Notification Type: PROBLEM
Service: Swap Usage
Host: Nagios Enterprise Monitoring Server
Address: 127.0.0.1
State: CRITICAL
Date/Time: Thu Mar 29 00:05:25 PDT 2018
Additional Info:
SWAP CRITICAL - 0% free (0 MB out of 976 MB)
=======
I power cycled and it now shows 100% free (976MB out of 976MB).
What caused this and is there a setting I need to change?
=======
***** Nagios *****
Notification Type: PROBLEM
Service: Swap Usage
Host: Nagios Enterprise Monitoring Server
Address: 127.0.0.1
State: CRITICAL
Date/Time: Thu Mar 29 00:05:25 PDT 2018
Additional Info:
SWAP CRITICAL - 0% free (0 MB out of 976 MB)
=======
I power cycled and it now shows 100% free (976MB out of 976MB).
What caused this and is there a setting I need to change?
- Robbie Ferguson
- Posting Freak
- Posts: 835
- Joined: Wed Mar 07, 2012 3:23 pm
- Location: Ontario, Canada
- Contact:
RE: SWAP CRITICAL
I'd suggest just removing Swap from your Linux Servers group.
It's not accurate on a Pi because Pi only has 1 GB RAM and we don't allow it to swap to the SD card. So when RAM gets full, it takes a moment to compress the RAM (thereby creating swap via ZRAM) and hence the Nagios warning.
It's not a warning to worry about at all. The RAM / ZRAM (and thereby swap) are managed by the system... but because of the Pi's lousy RAM specs, you do end up hitting the cap every now and again
Tired of waiting for a Pi 4, I'll continue working on porting NEMS Linux to the ODROID XU4
Robbie
It's not accurate on a Pi because Pi only has 1 GB RAM and we don't allow it to swap to the SD card. So when RAM gets full, it takes a moment to compress the RAM (thereby creating swap via ZRAM) and hence the Nagios warning.
It's not a warning to worry about at all. The RAM / ZRAM (and thereby swap) are managed by the system... but because of the Pi's lousy RAM specs, you do end up hitting the cap every now and again
Tired of waiting for a Pi 4, I'll continue working on porting NEMS Linux to the ODROID XU4
Robbie
Robbie Ferguson // The Bald Nerd
Did I help you out? Appreciate what I do? Please consider saying thanks:
Did I help you out? Appreciate what I do? Please consider saying thanks:
- Throw something in the tip jar: https://donate.category5.tv
- Support Category5 TV on Patreon: https://patreon.com/category5
- Support NEMS Linux on Patreon: https://patreon.com/nems
RE: SWAP CRITICAL
Thanks, Robbie! I found where the swap setting is and nuked it.
If you've got a moment could you please check back in on my "Not all Services sending emails" thread? I've only ever gotten one email from the router service.
If you've got a moment could you please check back in on my "Not all Services sending emails" thread? I've only ever gotten one email from the router service.
- Robbie Ferguson
- Posting Freak
- Posts: 835
- Joined: Wed Mar 07, 2012 3:23 pm
- Location: Ontario, Canada
- Contact:
RE: SWAP CRITICAL
Yeah, no problem - checking that one too
Robbie Ferguson // The Bald Nerd
Did I help you out? Appreciate what I do? Please consider saying thanks:
Did I help you out? Appreciate what I do? Please consider saying thanks:
- Throw something in the tip jar: https://donate.category5.tv
- Support Category5 TV on Patreon: https://patreon.com/category5
- Support NEMS Linux on Patreon: https://patreon.com/nems
RE: SWAP CRITICAL
Hey Robbie,
I am not trying to hijack a thread here, but I was wondering if you could take a look at a post I made 10 days ago about getting a 404 when running to the URL for creating a backup.nems file. I haven't saw any replies and saw that you were responding to others. I'm sure it was an unintentional oversight. Can you take a look at your earliest convenience to see what you think.
I am not trying to hijack a thread here, but I was wondering if you could take a look at a post I made 10 days ago about getting a 404 when running to the URL for creating a backup.nems file. I haven't saw any replies and saw that you were responding to others. I'm sure it was an unintentional oversight. Can you take a look at your earliest convenience to see what you think.
- Robbie Ferguson
- Posting Freak
- Posts: 835
- Joined: Wed Mar 07, 2012 3:23 pm
- Location: Ontario, Canada
- Contact:
RE: SWAP CRITICAL
Hey panda2297, no problem - I understand. Though you could have just bumped your own thread.
Yes, I must have missed it, which I do tend to do... I do my absolute best to provide the best level of support I can, and apologize if I missed something (and I'm sure this happens more often than I'd like).
Looking for the thread and will reply within.
Robbie
Yes, I must have missed it, which I do tend to do... I do my absolute best to provide the best level of support I can, and apologize if I missed something (and I'm sure this happens more often than I'd like).
Looking for the thread and will reply within.
Robbie
Robbie Ferguson // The Bald Nerd
Did I help you out? Appreciate what I do? Please consider saying thanks:
Did I help you out? Appreciate what I do? Please consider saying thanks:
- Throw something in the tip jar: https://donate.category5.tv
- Support Category5 TV on Patreon: https://patreon.com/category5
- Support NEMS Linux on Patreon: https://patreon.com/nems
-
- Junior Member
- Posts: 11
- Joined: Thu Oct 04, 2018 11:17 am
RE: SWAP CRITICAL
Robbie and Toni: I'm having the same 'swap critical' error message. Where would I find the swap setting, and what should I do to avoid receiving these messages?
Thanks in advance from a new user!
Thanks in advance from a new user!
- Robbie Ferguson
- Posting Freak
- Posts: 835
- Joined: Wed Mar 07, 2012 3:23 pm
- Location: Ontario, Canada
- Contact:
RE: SWAP CRITICAL
What version of NEMS are you using?
Robbie Ferguson // The Bald Nerd
Did I help you out? Appreciate what I do? Please consider saying thanks:
Did I help you out? Appreciate what I do? Please consider saying thanks:
- Throw something in the tip jar: https://donate.category5.tv
- Support Category5 TV on Patreon: https://patreon.com/category5
- Support NEMS Linux on Patreon: https://patreon.com/nems
-
- Junior Member
- Posts: 11
- Joined: Thu Oct 04, 2018 11:17 am
RE: SWAP CRITICAL
I'm using version 1.4.1
- Robbie Ferguson
- Posting Freak
- Posts: 835
- Joined: Wed Mar 07, 2012 3:23 pm
- Location: Ontario, Canada
- Contact:
RE: SWAP CRITICAL
If you SSH to your NEMS server, do you get any errors when you type:
sudo nems-update
sudo nems-update
Robbie Ferguson // The Bald Nerd
Did I help you out? Appreciate what I do? Please consider saying thanks:
Did I help you out? Appreciate what I do? Please consider saying thanks:
- Throw something in the tip jar: https://donate.category5.tv
- Support Category5 TV on Patreon: https://patreon.com/category5
- Support NEMS Linux on Patreon: https://patreon.com/nems