RAM memory values in CentOs 6 are incorrect

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
mon-team
Posts: 171
Joined: Thu Jun 28, 2012 9:22 am

RAM memory values in CentOs 6 are incorrect

Post by mon-team »

Hello,
i've reported this anomaly als on github, this is my topic:

I installed latest NCPA version (2.1.6) on a CentOS 6.6, but values about RAM memory (memory/virtual) are incorrect (except for free memory).

NCAP values:
"available": [ 13.98, "GB" ]
"total": [ 16.72, "GB" ]
"percent": [ 16.4, "%" ]
"free": [ 3.49, "GB" ]
"used": [ 2.06, "GB"]

"free -m" command:
total used free shared buffers cached
Mem: 15943 12619 3324 398 199 7919

On the server memory values reported by htop, top, free -m and "cat /proc/meminfo" are the same.
The only values from NCPA which seems realistic is the free memory.
On CentOS 7 values are correct.
Do you confirm this anomaly?

regards
Francesco
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: RAM memory values in CentOs 6 are incorrect

Post by lmiltchev »

NCPA uses psutil, so it reports whatever the values are. Some of the memory types a calculated differently, so this is what is causing the issue. For more information on how virtual memory is calculated by psutil, read here:

https://psutil.readthedocs.io/en/latest ... ual_memory
Be sure to check out our Knowledgebase for helpful articles and solutions!
mon-team
Posts: 171
Joined: Thu Jun 28, 2012 9:22 am

Re: RAM memory values in CentOs 6 are incorrect

Post by mon-team »

Thanks for your reply.
I'll avoid to use NCPA on or centOS6 servers.
Francesco
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: RAM memory values in CentOs 6 are incorrect

Post by lmiltchev »

Sounds good. I am closing this topic now. If you have any further questions, please open a new thread. Thank you!
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked