Linux Memory Monitoring

Started by pace, April 17, 2015, 10:30:46 PM

Previous topic - Next topic

pace

When I use Free or Available memory checks on Linux, it does not take into account the system cache.  This makes all my busy servers appear to have no memory to NetXMS because the systems start using all the free memory for file system caching.  Is there any way to take this into account?  Right now I'm checking for the use of swap to see if I'm really running out of memory -- I'd prefer not to do that and I would like to be able to check for free memory on my systems that have been intentionally configured without swap...


Thanks!
pace

pace

Still having this problem.  Any solutions out there?


pace

tomaskir

How are you getting the data - from SNMP or nxagent?

Because the answer depends on what you are using.

pace

Quote from: tomaskir on June 11, 2015, 01:58:54 AM
How are you getting the data - from SNMP or nxagent?

nxagent


pace

gyouja

Quote from: pace on June 11, 2015, 01:56:29 AM
Still having this problem.  Any solutions out there?
Add following line to nxagentd.conf and create appropriate DCI for FreeMemPerc:
ExternalParameter = FreeMemPerc:awk '$$1=="MemTotal:" {total=$$2} $$1=="MemFree:" {free=$$2} $$1=="Cached:" {cached=$$2} END {printf("%.0f\n",(free+cached)/total*100)}' /proc/meminfo