05-05-2019, 09:04 AM
I have NEMS 1.5 running on my Raspberry Pi and all of a sudden I am getting critical errors to due to lack of swap space from my other raspberry pi's (running both raspian and DietPi). If I run the command on my NEMS server:
/usr/local/nagios/libexec/check_swap -w 20 -c 10 pihole
I get:
SWAP OK - 1% free (0 MB out of 99 MB) |swap=0MB;0;0;0;99
i.e. swap space is OK but there isn't much free! However if I log in to the raspberry pi server and type
free
I get:
total used free shared buff/cache available
Mem: 949448 135012 562460 36684 251976 727408
Swap: 102396 0 102396
i.e. there is 100% free!
Any idea what is wrong?
Andrew
PS The other odd thing is that when I get critical errors, they occur at exactly the same time for both raspberry pis
/usr/local/nagios/libexec/check_swap -w 20 -c 10 pihole
I get:
SWAP OK - 1% free (0 MB out of 99 MB) |swap=0MB;0;0;0;99
i.e. swap space is OK but there isn't much free! However if I log in to the raspberry pi server and type
free
I get:
total used free shared buff/cache available
Mem: 949448 135012 562460 36684 251976 727408
Swap: 102396 0 102396
i.e. there is 100% free!
Any idea what is wrong?
Andrew
PS The other odd thing is that when I get critical errors, they occur at exactly the same time for both raspberry pis