Page 1 of 1
RAM memory monitoring information is not real
Posted: Wed Jul 17, 2019 12:24 pm
by parboleda
Hello everyone I use Nagios XI to monitor a centos server, the monitoring was configured with "ncpa", in RAM does not show the real value of the used memory, shows that the total of ram is 16 Gb that is correct, the The value of the available memory is also correct, but in the used memory it shows only 1.68 Gb, when in fact it is using almost 16 Gb, and it is not generating alerts to me because it is consuming all the memory, how can I make it show the information Real and send alerts?
Attached Image
Re: RAM memory monitoring information is not real
Posted: Thu Jul 18, 2019 2:33 pm
by scottwilkerson
You have 12006 cached which is subtracted out because that will be free'd on demand
Free = Total - Used - Cached
Re: RAM memory monitoring information is not real
Posted: Fri Jul 19, 2019 9:52 am
by parboleda
Good morning, thanks for the answer, it is not very clear to me, if rest those values gives a negative value
Free = 16000 - 15600 - 12006
free = -11606
Is there a way for Nagios to ignore the cache value?
Re: RAM memory monitoring information is not real
Posted: Fri Jul 19, 2019 1:43 pm
by scottwilkerson
NCPA uses psutils to calculate the memory, here are the docs
https://psutil.readthedocs.io/en/latest/#memory
parboleda wrote:Is there a way for Nagios to ignore the cache value?
Not with NCPA, but There are other memory plugins available on the Nagios exchange
http://exchange.nagios.org/
Re: RAM memory monitoring information is not real
Posted: Mon Jul 22, 2019 12:32 pm
by parboleda
Good afternoon, thanks for the information, there is some other recommended method different to NCPA to monitor the memory that throws the values that I need and that is not very complex to configure
Re: RAM memory monitoring information is not real
Posted: Mon Jul 22, 2019 4:02 pm
by ssax
I think you could probably use this:
Code: Select all
https://support.nagios.com/kb/article.php?id=171
Re: RAM memory monitoring information is not real
Posted: Tue Jul 23, 2019 5:34 pm
by parboleda
Thanks for the information
Re: RAM memory monitoring information is not real
Posted: Wed Jul 24, 2019 4:07 pm
by mbellerue
Do you have any other questions, or can I close this thread?