NetXMS Support Forum

English Support => General Support => Topic started by: pace on April 17, 2015, 10:30:46 PM

Title: Linux Memory Monitoring
Post by: pace on April 17, 2015, 10:30:46 PM
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
Title: Re: Linux Memory Monitoring
Post by: pace on June 11, 2015, 01:56:29 AM
Still having this problem.  Any solutions out there?


pace
Title: Re: Linux Memory Monitoring
Post by: tomaskir on June 11, 2015, 01:58:54 AM
How are you getting the data - from SNMP or nxagent?

Because the answer depends on what you are using.
Title: Re: Linux Memory Monitoring
Post by: pace on June 11, 2015, 02:00:08 AM
Quote from: tomaskir on June 11, 2015, 01:58:54 AM
How are you getting the data - from SNMP or nxagent?

nxagent


pace
Title: Re: Linux Memory Monitoring
Post by: gyouja on June 23, 2015, 01:17:09 PM
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