Linux Memory Monitoring
-
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 said in Linux Memory Monitoring:
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
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login