Page 1 of 2
SWAP CRITICAL
Posted: Thu Mar 29, 2018 2:32 am
by tonydi
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?
RE: SWAP CRITICAL
Posted: Thu Mar 29, 2018 7:22 am
by Robbie Ferguson
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
RE: SWAP CRITICAL
Posted: Thu Mar 29, 2018 12:07 pm
by tonydi
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.
RE: SWAP CRITICAL
Posted: Thu Mar 29, 2018 12:19 pm
by Robbie Ferguson
Yeah, no problem - checking that one too
RE: SWAP CRITICAL
Posted: Thu Mar 29, 2018 12:39 pm
by panda2297
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.
RE: SWAP CRITICAL
Posted: Thu Mar 29, 2018 12:46 pm
by Robbie Ferguson
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
RE: SWAP CRITICAL
Posted: Thu Oct 04, 2018 11:22 am
by experimenter
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!
RE: SWAP CRITICAL
Posted: Thu Oct 04, 2018 12:04 pm
by Robbie Ferguson
What version of NEMS are you using?
RE: SWAP CRITICAL
Posted: Thu Oct 04, 2018 2:16 pm
by experimenter
I'm using version 1.4.1
RE: SWAP CRITICAL
Posted: Thu Oct 04, 2018 3:59 pm
by Robbie Ferguson
If you SSH to your NEMS server, do you get any errors when you type:
sudo nems-update