Memory Usage in RHEL instances
Posted: Tue Feb 16, 2016 11:39 am
I need to understand how the memory usage service works in NagiosXI as we have a lot of servers that reach warning and critical levels when we have the service set to 20% and 10% respectively.
For instance, this server shows a `free -m` as follows:
Since Linux uses all free memory it can for optimization, the free usage under Mem doesn't really give a good indication of what is really available for memory utilization. Even using the -n option doesn't seem to provide a real idea of what the virtual memory actually has to use if a program needs it. I would say that the 1168mb of free memory under buffers/cache would be the better number to use. Am I reading this wrong or is there an option I'm not providing to NagiosXI arguments to take into account the cache free value?
For instance, this server shows a `free -m` as follows:
Code: Select all
root@server1 nagios# free -m
total used free shared buffers cached
Mem: 3829 3577 251 35 479 438
-/+ buffers/cache: 2660 1168
Swap: 0 0 0
Code: Select all
COMMAND: /usr/local/nagios/libexec/check_nrpe -H 10.200.9.125 -t 30 -c check_mem -a '-w 20 -c 10 -n'
OUTPUT: WARNING - 676 / 3829 MB (17%) Free Memory, Used: 3591 MB, Shared: 35 MB, Buffers: 479 MB, Cached: 438 MB | total=3829MB free=676MB used=3591MB shared=35 buffers=479MB cached=438MB