You're reading the graph wrong. The second like is "excluding cached, shared, buffers". The actual cached number is towards the bottom of the legend.

It's functionally not possible to get the same data from SNMP that you get from free, it just doesn't expose the numbers in the same way. There is a lot of messy maths happening to try to approximate the free output from the data we get from SNMP, but it never matches. I think we're missing a value or two needed to calculate everything properly.

Long ago I was going to expose it with custom code, but the Linux kernel changed the way it exposed the numbers a couple of times too, so I didn't bother.

adam.

NGS Webmaster via observium wrote on 20/07/2023 17:43:


---------- Forwarded message ---------
From: NGS Webmaster <ngs.webmaster@noaa.gov>
Date: Fri, Jun 30, 2023 at 12:34 PM
Subject: Memory plots are mislabeled or incorrect in Observium
To: <observium-subscribe@lists.observium.org>


Hello,

The memory plots appear to be mislabeled in Observium.   Below is a plot for one of our systems.
image.png
It reports that 32.19GB of memory is being used and that 5.67GB of memory is cached.  However when I run the free -h command on the system the values for these fields are different.
image.png
This makes it difficult to accurately monitor the memory usage and setup accurate alerts for memory usage for systems.
Can this bug be fixed?  Our version information is below.
image.png
Thank you 


_______________________________________________
observium mailing list -- observium@lists.observium.org
To unsubscribe send an email to observium-leave@lists.observium.org